Update app.py
Browse files
app.py
CHANGED
@@ -293,24 +293,18 @@ ClimateGPT harnesses modern OCR techniques to parse and preprocess IPCC reports.
|
|
293 |
### Feedbacks
|
294 |
"""
|
295 |
)
|
296 |
-
with gr.Row():
|
297 |
-
with gr.Column():
|
298 |
feedback = gr.Textbox(label="Write your feedback here")
|
299 |
-
with gr.Column(scale=1):
|
300 |
feedback_output = gr.Textbox(label="Submit status")
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
"If you need us to ask another climate science report or ask any question, contact us at <b>theo.alvesdacosta@ekimetrics.com</b>"
|
311 |
-
)
|
312 |
|
313 |
-
with gr.Row():
|
314 |
with gr.Column(scale=1):
|
315 |
gr.Markdown("## OpenAI API")
|
316 |
gr.Markdown(
|
|
|
293 |
### Feedbacks
|
294 |
"""
|
295 |
)
|
|
|
|
|
296 |
feedback = gr.Textbox(label="Write your feedback here")
|
|
|
297 |
feedback_output = gr.Textbox(label="Submit status")
|
298 |
+
feedback_save = gr.Button(value="submit feedback")
|
299 |
+
feedback_save.click(
|
300 |
+
save_feedback,
|
301 |
+
inputs=[feedback, user_id_state],
|
302 |
+
outputs=feedback_output,
|
303 |
+
)
|
304 |
+
gr.Markdown(
|
305 |
+
"If you need us to ask another climate science report or ask any question, contact us at <b>theo.alvesdacosta@ekimetrics.com</b>"
|
306 |
+
)
|
|
|
|
|
307 |
|
|
|
308 |
with gr.Column(scale=1):
|
309 |
gr.Markdown("## OpenAI API")
|
310 |
gr.Markdown(
|