Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -239,18 +239,22 @@ ClimateGPT harnesses modern OCR techniques to parse and preprocess IPCC reports.
|
|
239 |
sources_textbox = gr.Textbox(
|
240 |
interactive=False, show_label=False, max_lines=50
|
241 |
)
|
242 |
-
reports_select = gr.Dropdown(
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
),
|
247 |
ask.submit(
|
248 |
fn=chat,
|
249 |
inputs=[
|
250 |
user_id_state,
|
251 |
ask,
|
252 |
state,
|
253 |
-
|
|
|
|
|
|
|
|
|
254 |
],
|
255 |
outputs=[chatbot, state, sources_textbox],
|
256 |
)
|
@@ -262,7 +266,6 @@ ClimateGPT harnesses modern OCR techniques to parse and preprocess IPCC reports.
|
|
262 |
user_id_state,
|
263 |
ask_examples_hidden,
|
264 |
state,
|
265 |
-
reports_select
|
266 |
],
|
267 |
outputs=[chatbot, state, sources_textbox],
|
268 |
)
|
|
|
239 |
sources_textbox = gr.Textbox(
|
240 |
interactive=False, show_label=False, max_lines=50
|
241 |
)
|
242 |
+
# reports_select = gr.Dropdown(
|
243 |
+
# ["IPCC only", "All available"],
|
244 |
+
# default="All available",
|
245 |
+
# label="Select reports",
|
246 |
+
# ),
|
247 |
ask.submit(
|
248 |
fn=chat,
|
249 |
inputs=[
|
250 |
user_id_state,
|
251 |
ask,
|
252 |
state,
|
253 |
+
gr.inputs.Dropdown(
|
254 |
+
["IPCC only", "All available"],
|
255 |
+
default="All available",
|
256 |
+
label="Select reports",
|
257 |
+
),
|
258 |
],
|
259 |
outputs=[chatbot, state, sources_textbox],
|
260 |
)
|
|
|
266 |
user_id_state,
|
267 |
ask_examples_hidden,
|
268 |
state,
|
|
|
269 |
],
|
270 |
outputs=[chatbot, state, sources_textbox],
|
271 |
)
|