Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
change order of usage modes
Browse files
app.py
CHANGED
@@ -322,14 +322,14 @@ with gr.Blocks(title="EUDR Bot", theme=theme, css="style.css") as demo:
|
|
322 |
# Data Sources Tab
|
323 |
with gr.Tab("Modo de uso", id=2):
|
324 |
search_method = gr.Radio(
|
325 |
-
choices=["
|
326 |
label="Elija una fuente de datos",
|
327 |
info="Sube un GeoJSON para su análisis o selecciona informes EUDR específicos de cada país.",
|
328 |
-
value="
|
329 |
)
|
330 |
|
331 |
# GeoJSON Upload Section
|
332 |
-
with gr.Group(visible=
|
333 |
uploaded_file = gr.File(
|
334 |
label="Subir GeoJson",
|
335 |
file_types=[".geojson", ".json"],
|
@@ -347,7 +347,7 @@ with gr.Blocks(title="EUDR Bot", theme=theme, css="style.css") as demo:
|
|
347 |
)
|
348 |
|
349 |
# Talk to Reports Section
|
350 |
-
with gr.Group(visible=
|
351 |
dropdown_country = gr.Dropdown(
|
352 |
["Ecuador", "Guatemala"],
|
353 |
label="Selecciona país",
|
|
|
322 |
# Data Sources Tab
|
323 |
with gr.Tab("Modo de uso", id=2):
|
324 |
search_method = gr.Radio(
|
325 |
+
choices=["Hablar con documentos", "Subir GeoJson"],
|
326 |
label="Elija una fuente de datos",
|
327 |
info="Sube un GeoJSON para su análisis o selecciona informes EUDR específicos de cada país.",
|
328 |
+
value="Hablar con documentos",
|
329 |
)
|
330 |
|
331 |
# GeoJSON Upload Section
|
332 |
+
with gr.Group(visible=False) as geojson_section:
|
333 |
uploaded_file = gr.File(
|
334 |
label="Subir GeoJson",
|
335 |
file_types=[".geojson", ".json"],
|
|
|
347 |
)
|
348 |
|
349 |
# Talk to Reports Section
|
350 |
+
with gr.Group(visible=True) as reports_section:
|
351 |
dropdown_country = gr.Dropdown(
|
352 |
["Ecuador", "Guatemala"],
|
353 |
label="Selecciona país",
|
utils/__pycache__/generator.cpython-310.pyc
CHANGED
Binary files a/utils/__pycache__/generator.cpython-310.pyc and b/utils/__pycache__/generator.cpython-310.pyc differ
|
|
utils/__pycache__/retriever.cpython-310.pyc
CHANGED
Binary files a/utils/__pycache__/retriever.cpython-310.pyc and b/utils/__pycache__/retriever.cpython-310.pyc differ
|
|
utils/__pycache__/whisp_api.cpython-310.pyc
CHANGED
Binary files a/utils/__pycache__/whisp_api.cpython-310.pyc and b/utils/__pycache__/whisp_api.cpython-310.pyc differ
|
|