Update app.py
Browse files
app.py
CHANGED
|
@@ -451,12 +451,11 @@ if st.button("Fetch Sentiment Data"):
|
|
| 451 |
st.subheader("Final Report")
|
| 452 |
st.write(output_dict.get("final_report"))
|
| 453 |
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
audio_data = output_dict["audio_text"]
|
| 457 |
|
| 458 |
-
|
| 459 |
-
|
| 460 |
|
| 461 |
|
| 462 |
except requests.exceptions.RequestException as e:
|
|
|
|
| 451 |
st.subheader("Final Report")
|
| 452 |
st.write(output_dict.get("final_report"))
|
| 453 |
|
| 454 |
+
with st.spinner("Generating audio..."):
|
| 455 |
+
audio_data = output_dict["audio_text"]
|
|
|
|
| 456 |
|
| 457 |
+
if audio_data:
|
| 458 |
+
st.audio(audio_data, format="audio/mp3")
|
| 459 |
|
| 460 |
|
| 461 |
except requests.exceptions.RequestException as e:
|