afortuny commited on
Commit
97e6f2a
·
1 Parent(s): 446d4d9

app fix 2

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -20,14 +20,14 @@ def process_tables(table1_path, table2_path, columns_embeddings_col1, columns_em
20
  result_final.to_csv(result_path, index=False)
21
  return result_path
22
 
23
- # Define Gradio interface
24
  iface = gr.Interface(
25
  fn=process_tables,
26
  inputs=[
27
  gr.File(label="Upload Table 1 (Client Indicators or Framework Table)"),
28
  gr.File(label="Upload Table 2 (Internal Indicator or Indicator Table)"),
29
- gr.Textbox(label="Columns for Embeddings in Table 1", default="Indicator Name", placeholder="Enter column names separated by commas"),
30
- gr.Textbox(label="Columns for Embeddings in Table 2", default="Indicator name (leonardo)", placeholder="Enter column names separated by commas"),
31
  gr.Checkbox(label="Harmonization Mode", value=True)
32
  ],
33
  outputs=[
@@ -37,3 +37,4 @@ iface = gr.Interface(
37
  )
38
 
39
  iface.launch()
 
 
20
  result_final.to_csv(result_path, index=False)
21
  return result_path
22
 
23
+ # Correct the initialization of Textbox components
24
  iface = gr.Interface(
25
  fn=process_tables,
26
  inputs=[
27
  gr.File(label="Upload Table 1 (Client Indicators or Framework Table)"),
28
  gr.File(label="Upload Table 2 (Internal Indicator or Indicator Table)"),
29
+ gr.Textbox(label="Columns for Embeddings in Table 1", value="Indicator Name", placeholder="Enter column names separated by commas"),
30
+ gr.Textbox(label="Columns for Embeddings in Table 2", value="Indicator name (leonardo)", placeholder="Enter column names separated by commas"),
31
  gr.Checkbox(label="Harmonization Mode", value=True)
32
  ],
33
  outputs=[
 
37
  )
38
 
39
  iface.launch()
40
+