cycool29 commited on
Commit
76ad0d6
·
1 Parent(s): 6dbd3e7
Files changed (1) hide show
  1. app.py +23 -9
app.py CHANGED
@@ -59,12 +59,12 @@ css = """
59
  width: 100%;
60
  }
61
  #image_input {
62
- width: 237px !important;
63
- height: 237px !important;
64
  }
65
  #image_input img {
66
- width: 237px !important;
67
- height: 237px !important;
68
  }
69
  .output-image {
70
  width: 70% !important;
@@ -87,7 +87,7 @@ css = """
87
  #title-label {
88
  font-size: 35px !important;
89
  text-align: -webkit-center !important;
90
- margin-block-end: -50px;
91
  }
92
  #desc-label {
93
  font-size: 15px !important;
@@ -112,6 +112,17 @@ with block as demo:
112
  elem_id="desc-label",
113
  show_label=False
114
  )
 
 
 
 
 
 
 
 
 
 
 
115
  with gr.Row():
116
  image_input = gr.Image(
117
  type="filepath",
@@ -120,8 +131,10 @@ with block as demo:
120
  elem_id="image_input",
121
  )
122
  with gr.Column():
123
- feature_explanation = gr.Label(
124
- "Feature Explanation Toggle", elem_id="feature-explanation", show_label=False
 
 
125
  )
126
  gradcam_toggle = gr.Checkbox(label="GradCAM++")
127
  lime_toggle = gr.Checkbox(label="LIME")
@@ -133,6 +146,7 @@ with block as demo:
133
  )
134
  with gr.Row():
135
  submit_button = gr.Button(value="Submit")
 
136
  # cancel_button = gr.Button(value="Cancel")
137
  # theme="gradio/soft",
138
  # fn=process_file,
@@ -146,12 +160,12 @@ with block as demo:
146
  # GradCAM
147
  with gr.Row():
148
  gradcam_output = gr.Image(
149
- label="Feature Explanation",
150
  type="filepath",
151
  elem_classes=["output-image"],
152
  )
153
  lime_output = gr.Image(
154
- label="Feature Explanation",
155
  type="filepath",
156
  elem_classes=["output-image"],
157
  )
 
59
  width: 100%;
60
  }
61
  #image_input {
62
+ width: 300px !important;
63
+ height: 300px !important;
64
  }
65
  #image_input img {
66
+ width: 300px !important;
67
+ height: 300px !important;
68
  }
69
  .output-image {
70
  width: 70% !important;
 
87
  #title-label {
88
  font-size: 35px !important;
89
  text-align: -webkit-center !important;
90
+ margin-block-end: -55px;
91
  }
92
  #desc-label {
93
  font-size: 15px !important;
 
112
  elem_id="desc-label",
113
  show_label=False
114
  )
115
+ # gr.Markdown(
116
+ # """
117
+ # <h1 style="text-align: center;">SpiralSense</h1>
118
+ # <h4 style="text-align: center;">Cost-Effective, Portable And Stressless Spiral Drawing Analysing Web Application for Early Detection of Multiple Neurological Disorders with 96% Accuracy</h4>
119
+ # """
120
+ # )
121
+ # gr.Markdown(
122
+ # """
123
+ # <h4 style="text-align: center;">------------------------------------------</h4>
124
+ # """
125
+ # )
126
  with gr.Row():
127
  image_input = gr.Image(
128
  type="filepath",
 
131
  elem_id="image_input",
132
  )
133
  with gr.Column():
134
+ gr.Markdown(
135
+ """
136
+ <h4>Feature Explanations</h4>
137
+ """
138
  )
139
  gradcam_toggle = gr.Checkbox(label="GradCAM++")
140
  lime_toggle = gr.Checkbox(label="LIME")
 
146
  )
147
  with gr.Row():
148
  submit_button = gr.Button(value="Submit")
149
+ gr.Markdown("<br>")
150
  # cancel_button = gr.Button(value="Cancel")
151
  # theme="gradio/soft",
152
  # fn=process_file,
 
160
  # GradCAM
161
  with gr.Row():
162
  gradcam_output = gr.Image(
163
+ label="GradCAM++",
164
  type="filepath",
165
  elem_classes=["output-image"],
166
  )
167
  lime_output = gr.Image(
168
+ label="LIME",
169
  type="filepath",
170
  elem_classes=["output-image"],
171
  )