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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
  import pandas as pd
3
  from groq import Groq
 
4
 
5
  def excel_to_csv(fi):
6
  df = pd.read_excel(fi)
@@ -11,7 +12,7 @@ def excel_to_csv(fi):
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 = """
 
1
  import gradio as gr
2
  import pandas as pd
3
  from groq import Groq
4
+ import os
5
 
6
  def excel_to_csv(fi):
7
  df = pd.read_excel(fi)
 
12
 
13
  df = df.to_csv(path_or_buf = "here2.csv")
14
 
15
+ return gr.Dropdown(choices=clm,value=clm, label="Columns of the file", multiselect=True, allow_custom_value=True), "here2.csv"
16
 
17
  def text_to_neo4j(rm, cm):
18
  prompt = """