Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,12 +39,13 @@ if st.button("Generate"):
|
|
39 |
|
40 |
if prompt:
|
41 |
#c.text("Generating response...")
|
42 |
-
|
|
|
43 |
#spin = st.spinner
|
44 |
-
with
|
45 |
-
|
46 |
-
|
47 |
-
bar = st.progress(20)
|
48 |
sdf.chat(prompt)
|
49 |
bar = st.progress(100)
|
50 |
|
@@ -52,7 +53,7 @@ if st.button("Generate"):
|
|
52 |
if os.path.isfile('./exports/charts/temp_chart.png'):
|
53 |
st.image('./exports/charts/temp_chart.png')
|
54 |
#st.success('Done!')
|
55 |
-
bar.progress(100)
|
56 |
|
57 |
#c.write(bar)
|
58 |
#c.write(st.spinner)
|
|
|
39 |
|
40 |
if prompt:
|
41 |
#c.text("Generating response...")
|
42 |
+
if os.path.isfile('./exports/charts/temp_chart.png'):
|
43 |
+
os.remove('./exports/charts/temp_chart.png')
|
44 |
#spin = st.spinner
|
45 |
+
with bild:
|
46 |
+
with st.spinner("Generating response..."):
|
47 |
+
|
48 |
+
#bar = st.progress(20)
|
49 |
sdf.chat(prompt)
|
50 |
bar = st.progress(100)
|
51 |
|
|
|
53 |
if os.path.isfile('./exports/charts/temp_chart.png'):
|
54 |
st.image('./exports/charts/temp_chart.png')
|
55 |
#st.success('Done!')
|
56 |
+
#bar.progress(100)
|
57 |
|
58 |
#c.write(bar)
|
59 |
#c.write(st.spinner)
|