cycool29 commited on
Commit
6dbd3e7
·
1 Parent(s): bd1d5ff
Files changed (1) hide show
  1. app.py +36 -9
app.py CHANGED
@@ -59,14 +59,16 @@ css = """
59
  width: 100%;
60
  }
61
  #image_input {
62
- width: 200% !important;
 
63
  }
64
  #image_input img {
65
- width: 200% !important;
 
66
  }
67
  .output-image {
68
  width: 70% !important;
69
- text-align: -webkit-center !important;
70
  }
71
  .output-image img {
72
  width: 300px !important;
@@ -81,15 +83,35 @@ css = """
81
  .built-with {
82
  visibility: hidden !important;
83
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  """
85
 
86
- block = gr.Blocks(title="HANDETECT", css=css, theme="gradio/soft")
87
 
88
  block.queue()
89
- block.title = "HANDETECT"
90
 
91
  with block as demo:
92
  with gr.Column():
 
 
 
 
 
 
93
  with gr.Row():
94
  image_input = gr.Image(
95
  type="filepath",
@@ -98,11 +120,16 @@ with block as demo:
98
  elem_id="image_input",
99
  )
100
  with gr.Column():
101
- gradcam_toggle = gr.Checkbox(
102
- label="GradCAM", default=False
103
  )
104
- lime_toggle = gr.Checkbox(
105
- label="LIME", default=False
 
 
 
 
 
106
  )
107
  with gr.Row():
108
  submit_button = gr.Button(value="Submit")
 
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;
71
+ text-align: -webkit-center !important;
72
  }
73
  .output-image img {
74
  width: 300px !important;
 
83
  .built-with {
84
  visibility: hidden !important;
85
  }
86
+
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;
94
+ text-align: -webkit-center !important;
95
+ }
96
+
97
+ .output-class.svelte-75gm11.svelte-75gm11.svelte-75gm11 {
98
+ font-size: unset !important;
99
+ }
100
+
101
  """
102
 
103
+ block = gr.Blocks(title="SpiralSense", css=css, theme="gradio/soft")
104
 
105
  block.queue()
 
106
 
107
  with block as demo:
108
  with gr.Column():
109
+ gr.Label("SpiralSense", elem_id="title-label", show_label=False)
110
+ gr.Label(
111
+ "Cost-Effective, Portable And Stressless Spiral Drawing Analysing Web Application for Early Detection of Multiple Neurological Disorders with 96% Accuracy",
112
+ elem_id="desc-label",
113
+ show_label=False
114
+ )
115
  with gr.Row():
116
  image_input = gr.Image(
117
  type="filepath",
 
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")
128
+ warning_of_slow = gr.Label(
129
+ "Warning: Feature Explanation may take a very long time to load.",
130
+ elem_id="warning_of_slow",
131
+ color="red",
132
+ show_label=False,
133
  )
134
  with gr.Row():
135
  submit_button = gr.Button(value="Submit")