Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -138,6 +138,11 @@ css = """
|
|
138 |
margin-top: 20px; /* Increased space above the submit button */
|
139 |
width: 100%;
|
140 |
}
|
|
|
|
|
|
|
|
|
|
|
141 |
"""
|
142 |
|
143 |
with gr.Blocks() as interface:
|
@@ -202,7 +207,8 @@ with gr.Blocks() as interface:
|
|
202 |
#output_type = gr.Dropdown(choices=["Excel", "JSON", "TXT"], label="Select Output Format", value="Excel")
|
203 |
#download_button = gr.Button("⬇️ Download Output")
|
204 |
#download_file = gr.File(label="Download File Here",visible=False)
|
205 |
-
|
|
|
206 |
|
207 |
report_button = gr.Button("Report inaccurate output to receive 1 extra free query",elem_id="run-btn")
|
208 |
report_textbox = gr.Textbox(
|
@@ -210,9 +216,16 @@ with gr.Blocks() as interface:
|
|
210 |
lines=4,
|
211 |
placeholder="e.g. DQ981467: it gives me unknown when I can in fact search it on NCBI \n DQ981467: cannot find the result in batch output when the live processing did show already processed",
|
212 |
visible=False)
|
213 |
-
submit_report_button = gr.Button("Submit", visible=False, elem_id="run-btn")
|
214 |
status_report = gr.Markdown(visible=False)
|
215 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
with gr.Group(visible=True, elem_id="nps-overlay") as nps_modal:
|
217 |
#with gr.Column(elem_id="nps-box"):
|
218 |
with gr.Box(elem_id="nps-container"):
|
@@ -232,11 +245,8 @@ with gr.Blocks() as interface:
|
|
232 |
gr.Markdown("Extremely likely")
|
233 |
|
234 |
nps_submit = gr.Button("Submit", elem_id="nps-submit-button")
|
235 |
-
nps_output = gr.Textbox(label="", interactive=False, visible=True)
|
236 |
-
|
237 |
-
download_file = gr.File(label="Download File Here", visible=False, interactive=True)
|
238 |
-
progress_box = gr.Textbox(label="Live Processing Log", lines=20, interactive=False)
|
239 |
-
|
240 |
gr.Markdown("---")
|
241 |
|
242 |
gr.Markdown("### 💬 Feedback (required)")
|
|
|
138 |
margin-top: 20px; /* Increased space above the submit button */
|
139 |
width: 100%;
|
140 |
}
|
141 |
+
/* Active click style for the NPS submit button */
|
142 |
+
#nps-submit-button:active {
|
143 |
+
border-color: white !important;
|
144 |
+
box-shadow: 0 0 5px white inset;
|
145 |
+
}
|
146 |
"""
|
147 |
|
148 |
with gr.Blocks() as interface:
|
|
|
207 |
#output_type = gr.Dropdown(choices=["Excel", "JSON", "TXT"], label="Select Output Format", value="Excel")
|
208 |
#download_button = gr.Button("⬇️ Download Output")
|
209 |
#download_file = gr.File(label="Download File Here",visible=False)
|
210 |
+
# Use gr.Markdown to add a visual space
|
211 |
+
gr.Markdown(" ") # A simple blank markdown can create space
|
212 |
|
213 |
report_button = gr.Button("Report inaccurate output to receive 1 extra free query",elem_id="run-btn")
|
214 |
report_textbox = gr.Textbox(
|
|
|
216 |
lines=4,
|
217 |
placeholder="e.g. DQ981467: it gives me unknown when I can in fact search it on NCBI \n DQ981467: cannot find the result in batch output when the live processing did show already processed",
|
218 |
visible=False)
|
219 |
+
submit_report_button = gr.Button("Submit", visible=False, ''elem_id="run-btn"'')
|
220 |
status_report = gr.Markdown(visible=False)
|
221 |
|
222 |
+
# Use gr.Markdown to add a visual space
|
223 |
+
gr.Markdown(" ") # A simple blank markdown can create space
|
224 |
+
|
225 |
+
download_file = gr.File(label="Download File Here", visible=False, interactive=True)
|
226 |
+
|
227 |
+
progress_box = gr.Textbox(label="Live Processing Log", lines=20, interactive=False)
|
228 |
+
|
229 |
with gr.Group(visible=True, elem_id="nps-overlay") as nps_modal:
|
230 |
#with gr.Column(elem_id="nps-box"):
|
231 |
with gr.Box(elem_id="nps-container"):
|
|
|
245 |
gr.Markdown("Extremely likely")
|
246 |
|
247 |
nps_submit = gr.Button("Submit", elem_id="nps-submit-button")
|
248 |
+
nps_output = gr.Textbox(label="", interactive=False, visible=True)
|
249 |
+
|
|
|
|
|
|
|
250 |
gr.Markdown("---")
|
251 |
|
252 |
gr.Markdown("### 💬 Feedback (required)")
|