Spaces:
Sleeping
Sleeping
app fix 2
Browse files
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 |
-
#
|
| 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",
|
| 30 |
-
gr.Textbox(label="Columns for Embeddings in Table 2",
|
| 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 |
+
|