mgokg commited on
Commit
ed0fd21
·
verified ·
1 Parent(s): 42d8c3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -28,7 +28,7 @@ if uploaded_file is not None:
28
  df1 = pd.read_csv(uploaded_file)
29
  #st.table(df1)
30
  df1 = pd.DataFrame(df1)
31
- df1
32
  sdf = SmartDataframe(df1)
33
 
34
  bild = st.empty()
@@ -46,11 +46,12 @@ if st.button("Generate"):
46
  with st.spinner("Generating response..."):
47
 
48
  #bar = st.progress(20)
49
- sdf.chat(prompt)
50
  #bar = st.progress(100)
51
 
52
  with bild:
53
  #with st.spinner("Generating response..."):
 
54
  if os.path.isfile('./exports/charts/temp_chart.png'):
55
  st.image('./exports/charts/temp_chart.png')
56
  #st.success('Done!')
 
28
  df1 = pd.read_csv(uploaded_file)
29
  #st.table(df1)
30
  df1 = pd.DataFrame(df1)
31
+ st.success("Daten erfolgreich geladen!")
32
  sdf = SmartDataframe(df1)
33
 
34
  bild = st.empty()
 
46
  with st.spinner("Generating response..."):
47
 
48
  #bar = st.progress(20)
49
+
50
  #bar = st.progress(100)
51
 
52
  with bild:
53
  #with st.spinner("Generating response..."):
54
+ sdf.chat(prompt)
55
  if os.path.isfile('./exports/charts/temp_chart.png'):
56
  st.image('./exports/charts/temp_chart.png')
57
  #st.success('Done!')