mgokg commited on
Commit
df37481
·
verified ·
1 Parent(s): babb003

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -30,7 +30,8 @@ if uploaded_file is not None:
30
  df1
31
  sdf = SmartDataframe(df1)
32
 
33
-
 
34
  prompt = st.text_area("Enter your prompt:")
35
  if st.button("Generate"):
36
 
@@ -41,8 +42,8 @@ if st.button("Generate"):
41
  bar = st.progress(0)
42
  #c.write(bar)
43
  #c.write(st.spinner)
44
- bild.empty()
45
- bild.write(sdf.chat(prompt))
46
  if os.path.isfile('./exports/charts/temp_chart.png'):
47
  st.write(st.image('./exports/charts/temp_chart.png',caption=None))
48
  #st.write(sdf.chat(prompt))
@@ -51,9 +52,9 @@ if st.button("Generate"):
51
  else:
52
 
53
  st.error("Please enter a prompt.")
54
- bild = st.empty()
55
  c = st.container(border=True)
56
- c.subheader("Datenanalyse & Datenvisualisierung")
57
  #with placeholder.container():
58
  #st.write("This is one element")
59
  #st.write("This is another")
 
30
  df1
31
  sdf = SmartDataframe(df1)
32
 
33
+ bild = st.empty()
34
+ bild.subheader("Datenanalyse & Datenvisualisierung")
35
  prompt = st.text_area("Enter your prompt:")
36
  if st.button("Generate"):
37
 
 
42
  bar = st.progress(0)
43
  #c.write(bar)
44
  #c.write(st.spinner)
45
+ #bild.empty()
46
+ c.write(sdf.chat(prompt))
47
  if os.path.isfile('./exports/charts/temp_chart.png'):
48
  st.write(st.image('./exports/charts/temp_chart.png',caption=None))
49
  #st.write(sdf.chat(prompt))
 
52
  else:
53
 
54
  st.error("Please enter a prompt.")
55
+
56
  c = st.container(border=True)
57
+
58
  #with placeholder.container():
59
  #st.write("This is one element")
60
  #st.write("This is another")