mgokg commited on
Commit
48ff132
·
verified ·
1 Parent(s): bee6540

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -41,7 +41,7 @@ if st.button("Generate"):
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)
@@ -57,7 +57,8 @@ if st.button("Generate"):
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!')
 
41
  #c.text("Generating response...")
42
  #with st.spinner("Generating response..."):
43
  #spin = st.spinner
44
+ with bild:
45
  with st.spinner("Generating response..."):
46
  bar = st.progress(20)
47
  #time.sleep(5)
 
57
  bild.write(sdf.chat(prompt))
58
 
59
  if os.path.isfile('./exports/charts/temp_chart.png'):
60
+ with bild:
61
+ st.image('./exports/charts/temp_chart.png',caption=None)
62
  #st.write(sdf.chat(prompt))
63
  #bar.progress(100)
64
  st.success('Done!')