Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -223,8 +223,7 @@ with gr.Blocks() as interface:
|
|
| 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"):
|
|
@@ -245,16 +244,19 @@ with gr.Blocks() as interface:
|
|
| 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 |
-
|
| 251 |
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
|
| 259 |
# Functions
|
| 260 |
# def toggle_input_mode(mode):
|
|
@@ -1303,11 +1305,11 @@ with gr.Blocks() as interface:
|
|
| 1303 |
report_button.click(fn=show_report_ui, outputs=[report_textbox, submit_report_button, status_report])
|
| 1304 |
submit_report_button.click(fn=handle_submission, inputs=[report_textbox, user_email], outputs=[status_report, report_textbox, submit_report_button])
|
| 1305 |
|
| 1306 |
-
submit_feedback.click(
|
| 1307 |
-
|
| 1308 |
-
|
| 1309 |
-
|
| 1310 |
-
)
|
| 1311 |
nps_submit.click(fn=submit_nps, inputs=[user_email, nps_radio], outputs=[nps_output])
|
| 1312 |
# Link each button to submit function
|
| 1313 |
|
|
|
|
| 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 |
+
gr.Markdown(" ") # A simple blank markdown can create space
|
|
|
|
| 227 |
|
| 228 |
with gr.Group(visible=True, elem_id="nps-overlay") as nps_modal:
|
| 229 |
#with gr.Column(elem_id="nps-box"):
|
|
|
|
| 244 |
gr.Markdown("Extremely likely")
|
| 245 |
|
| 246 |
nps_submit = gr.Button("Submit", elem_id="nps-submit-button")
|
| 247 |
+
nps_output = gr.Textbox(label="", interactive=False, visible=True)
|
| 248 |
+
gr.Markdown(" ") # A simple blank markdown can create space
|
| 249 |
+
|
| 250 |
+
progress_box = gr.Textbox(label="Live Processing Log", lines=20, interactive=False)
|
| 251 |
|
| 252 |
+
gr.Markdown("---")
|
| 253 |
|
| 254 |
+
# gr.Markdown("### 💬 Feedback (required)")
|
| 255 |
+
# q1 = gr.Textbox(label="1️⃣ Was the inferred location accurate or helpful? Please explain.")
|
| 256 |
+
# q2 = gr.Textbox(label="2️⃣ What would improve your experience with this tool?")
|
| 257 |
+
# contact = gr.Textbox(label="📧 Your email or institution (optional)")
|
| 258 |
+
# submit_feedback = gr.Button("✅ Submit Feedback")
|
| 259 |
+
# feedback_status = gr.Markdown()
|
| 260 |
|
| 261 |
# Functions
|
| 262 |
# def toggle_input_mode(mode):
|
|
|
|
| 1305 |
report_button.click(fn=show_report_ui, outputs=[report_textbox, submit_report_button, status_report])
|
| 1306 |
submit_report_button.click(fn=handle_submission, inputs=[report_textbox, user_email], outputs=[status_report, report_textbox, submit_report_button])
|
| 1307 |
|
| 1308 |
+
# submit_feedback.click(
|
| 1309 |
+
# fn=mtdna_backend.store_feedback_to_google_sheets,
|
| 1310 |
+
# inputs=[raw_text, q1, q2, contact],
|
| 1311 |
+
# outputs=[feedback_status]
|
| 1312 |
+
# )
|
| 1313 |
nps_submit.click(fn=submit_nps, inputs=[user_email, nps_radio], outputs=[nps_output])
|
| 1314 |
# Link each button to submit function
|
| 1315 |
|