Spaces:
GIZ
/
Running on CPU Upgrade

leavoigt commited on
Commit
2d08a77
·
1 Parent(s): bf13ae6

translate UI

Browse files
app.py CHANGED
@@ -232,8 +232,8 @@ with gr.Blocks(title="EUDR Bot", theme=theme, css=custom_css) as demo:
232
  with gr.Tab("Fuentes de datos", id=2):
233
  search_method = gr.Radio(
234
  choices=["Subir GeoJson", "Talk to Reports"],
235
- label="Choose data source",
236
- info="Upload a GeoJSON file for analysis or select country-specific EUDR reports",
237
  value="Subir GeoJson",
238
  )
239
 
@@ -248,7 +248,7 @@ with gr.Blocks(title="EUDR Bot", theme=theme, css=custom_css) as demo:
248
 
249
  # Results table for WHISP API response
250
  results_table = gr.DataFrame(
251
- label="Analysis Results",
252
  visible=False,
253
  interactive=False,
254
  wrap=True,
@@ -259,7 +259,7 @@ with gr.Blocks(title="EUDR Bot", theme=theme, css=custom_css) as demo:
259
  with gr.Group(visible=False) as reports_section:
260
  dropdown_country = gr.Dropdown(
261
  ["Ecuador", "Guatemala"],
262
- label="Select Country",
263
  value=None,
264
  interactive=True,
265
  )
@@ -274,7 +274,7 @@ with gr.Blocks(title="EUDR Bot", theme=theme, css=custom_css) as demo:
274
  value=first_key,
275
  interactive=True,
276
  show_label=True,
277
- label="Select a category of sample questions"
278
  )
279
 
280
  # Create example sections
@@ -291,10 +291,10 @@ with gr.Blocks(title="EUDR Bot", theme=theme, css=custom_css) as demo:
291
  sample_groups.append(group_examples)
292
 
293
  # Sources Tab
294
- with gr.Tab("Sources", id=1):
295
  sources_textbox = gr.HTML(
296
  show_label=False,
297
- value="Source documents will appear here after you ask a question..."
298
  )
299
 
300
  # Guidelines Tab
 
232
  with gr.Tab("Fuentes de datos", id=2):
233
  search_method = gr.Radio(
234
  choices=["Subir GeoJson", "Talk to Reports"],
235
+ label="Elige una fuente de datos",
236
+ info="Sube un GeoJSON para su análisis o selecciona informes EUDR específicos de cada país.",
237
  value="Subir GeoJson",
238
  )
239
 
 
248
 
249
  # Results table for WHISP API response
250
  results_table = gr.DataFrame(
251
+ label="Resultados del análisis",
252
  visible=False,
253
  interactive=False,
254
  wrap=True,
 
259
  with gr.Group(visible=False) as reports_section:
260
  dropdown_country = gr.Dropdown(
261
  ["Ecuador", "Guatemala"],
262
+ label="Selecciona país",
263
  value=None,
264
  interactive=True,
265
  )
 
274
  value=first_key,
275
  interactive=True,
276
  show_label=True,
277
+ label="Seleccione una categoría de preguntas de muestra."
278
  )
279
 
280
  # Create example sections
 
291
  sample_groups.append(group_examples)
292
 
293
  # Sources Tab
294
+ with gr.Tab("Fuentes", id=1):
295
  sources_textbox = gr.HTML(
296
  show_label=False,
297
+ value="Los documentos originales aparecerán aquí después de que hagas una pregunta..."
298
  )
299
 
300
  # Guidelines Tab
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