mgokg commited on
Commit
71a77a6
·
verified ·
1 Parent(s): 77e357b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -8,7 +8,7 @@ import numpy as np
8
  #from pandasai import Agent
9
  import json
10
  import matplotlib.pyplot as plt
11
- from st_audiorec import st_audiorec
12
 
13
 
14
  os.environ['PANDASAI_API_KEY'] = "$2a$10$2s0v3C29vItNS2CO4QX10OV51/OONFCUNa4e9EU90w2Gozw88f4vK"
@@ -36,10 +36,7 @@ c.subheader("Datenanalyse & Datenvisualisierung")
36
  #st.write("This is one element")
37
  #st.write("This is another")
38
 
39
- wav_audio_data = st_audiorec()
40
 
41
- if wav_audio_data is not None:
42
- st.audio(wav_audio_data, format='audio/wav')
43
 
44
  prompt = st.text_area("Enter your prompt:")
45
  if st.button("Generate"):
@@ -52,9 +49,9 @@ if st.button("Generate"):
52
  #c.write(bar)
53
  #c.write(st.spinner)
54
  bild.empty()
55
- bild.write(sdf.chat(prompt))
56
  if os.path.isfile('./exports/charts/temp_chart.png'):
57
- bild.write(st.image('./exports/charts/temp_chart.png',caption=None))
58
  #st.write(sdf.chat(prompt))
59
  bar.progress(100)
60
 
 
8
  #from pandasai import Agent
9
  import json
10
  import matplotlib.pyplot as plt
11
+
12
 
13
 
14
  os.environ['PANDASAI_API_KEY'] = "$2a$10$2s0v3C29vItNS2CO4QX10OV51/OONFCUNa4e9EU90w2Gozw88f4vK"
 
36
  #st.write("This is one element")
37
  #st.write("This is another")
38
 
 
39
 
 
 
40
 
41
  prompt = st.text_area("Enter your prompt:")
42
  if st.button("Generate"):
 
49
  #c.write(bar)
50
  #c.write(st.spinner)
51
  bild.empty()
52
+ c.write(sdf.chat(prompt))
53
  if os.path.isfile('./exports/charts/temp_chart.png'):
54
+ c.write(st.image('./exports/charts/temp_chart.png',caption=None))
55
  #st.write(sdf.chat(prompt))
56
  bar.progress(100)
57