Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -29,6 +29,9 @@ if uploaded_file is not None:
|
|
29 |
df1 = pd.DataFrame(df1)
|
30 |
df1
|
31 |
sdf = SmartDataframe(df1)
|
|
|
|
|
|
|
32 |
if st.button("Generate"):
|
33 |
|
34 |
if prompt:
|
@@ -39,17 +42,15 @@ if st.button("Generate"):
|
|
39 |
#c.write(bar)
|
40 |
#c.write(st.spinner)
|
41 |
bild.empty()
|
42 |
-
|
43 |
if os.path.isfile('./exports/charts/temp_chart.png'):
|
44 |
-
|
45 |
#st.write(sdf.chat(prompt))
|
46 |
bar.progress(100)
|
47 |
|
48 |
else:
|
49 |
|
50 |
st.error("Please enter a prompt.")
|
51 |
-
|
52 |
-
prompt = st.text_area("Enter your prompt:")
|
53 |
bild = st.empty()
|
54 |
c = st.container(border=True)
|
55 |
c.subheader("Datenanalyse & Datenvisualisierung")
|
|
|
29 |
df1 = pd.DataFrame(df1)
|
30 |
df1
|
31 |
sdf = SmartDataframe(df1)
|
32 |
+
|
33 |
+
|
34 |
+
prompt = st.text_area("Enter your prompt:")
|
35 |
if st.button("Generate"):
|
36 |
|
37 |
if prompt:
|
|
|
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))
|
49 |
bar.progress(100)
|
50 |
|
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")
|