heymenn commited on
Commit
cb89fae
·
verified ·
1 Parent(s): 9ef2bb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ def excel_to_csv(fi):
11
 
12
  df = df.to_csv(path_or_buf = "here2.csv")
13
 
14
- return gr.Dropdown(clm, label="Columns of the file", multiselect=True, allow_custom_value=True), "here2.csv"
15
 
16
  def text_to_neo4j(rm, cm):
17
  prompt = """
@@ -107,7 +107,7 @@ with gr.Blocks() as demo:
107
 
108
  result_fi = gr.File(file_count='single')
109
 
110
- ex_fi.upload(excel_to_csv, inputs=ex_fi, outputs=[ex_fi, csv_fi])
111
 
112
  btn_submit.click(text_to_neo4j, inputs=[remarks, columns], outputs=result_fi)
113
 
 
11
 
12
  df = df.to_csv(path_or_buf = "here2.csv")
13
 
14
+ return gr.Dropdown(choices=clm, label="Columns of the file", multiselect=True, allow_custom_value=True), "here2.csv"
15
 
16
  def text_to_neo4j(rm, cm):
17
  prompt = """
 
107
 
108
  result_fi = gr.File(file_count='single')
109
 
110
+ ex_fi.upload(excel_to_csv, inputs=ex_fi, outputs=[columns, csv_fi])
111
 
112
  btn_submit.click(text_to_neo4j, inputs=[remarks, columns], outputs=result_fi)
113