mgokg commited on
Commit
7f8c43d
·
verified ·
1 Parent(s): 403c928

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -39,12 +39,13 @@ 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
- if os.path.isfile('./exports/charts/temp_chart.png'):
46
- os.remove('./exports/charts/temp_chart.png')
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)