Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,14 +38,14 @@ prompt = st.text_area("Enter your prompt:")
|
|
38 |
if st.button("Generate"):
|
39 |
|
40 |
if prompt:
|
41 |
-
c.text("Generating response...")
|
42 |
#with st.spinner("Generating response..."):
|
43 |
-
spin = st.spinner
|
44 |
with c:
|
45 |
with st.spinner("Generating response..."):
|
46 |
-
bar = st.progress(
|
47 |
-
time.sleep(5)
|
48 |
-
|
49 |
|
50 |
|
51 |
#c.write(bar)
|
@@ -57,9 +57,10 @@ if st.button("Generate"):
|
|
57 |
bild.write(sdf.chat(prompt))
|
58 |
|
59 |
if os.path.isfile('./exports/charts/temp_chart.png'):
|
60 |
-
st.image('./exports/charts/temp_chart.png',caption=None)
|
61 |
#st.write(sdf.chat(prompt))
|
62 |
-
bar.progress(100)
|
|
|
63 |
|
64 |
else:
|
65 |
|
|
|
38 |
if st.button("Generate"):
|
39 |
|
40 |
if prompt:
|
41 |
+
#c.text("Generating response...")
|
42 |
#with st.spinner("Generating response..."):
|
43 |
+
#spin = st.spinner
|
44 |
with c:
|
45 |
with st.spinner("Generating response..."):
|
46 |
+
bar = st.progress(20)
|
47 |
+
#time.sleep(5)
|
48 |
+
|
49 |
|
50 |
|
51 |
#c.write(bar)
|
|
|
57 |
bild.write(sdf.chat(prompt))
|
58 |
|
59 |
if os.path.isfile('./exports/charts/temp_chart.png'):
|
60 |
+
bild.write(st.image('./exports/charts/temp_chart.png',caption=None))
|
61 |
#st.write(sdf.chat(prompt))
|
62 |
+
#bar.progress(100)
|
63 |
+
st.success('Done!')
|
64 |
|
65 |
else:
|
66 |
|