Update app.py
Browse files
app.py
CHANGED
|
@@ -445,17 +445,18 @@ if st.button("Fetch Sentiment Data"):
|
|
| 445 |
"audio_text": audio_data,
|
| 446 |
}
|
| 447 |
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
if audio_data:
|
| 458 |
st.audio(audio_data, format="audio/mp3")
|
|
|
|
|
|
|
| 459 |
|
| 460 |
|
| 461 |
except requests.exceptions.RequestException as e:
|
|
|
|
| 445 |
"audio_text": audio_data,
|
| 446 |
}
|
| 447 |
|
| 448 |
+
|
| 449 |
+
if audio_data:
|
| 450 |
+
st.subheader("Company Name")
|
| 451 |
+
st.write(output_dict.get("company_name"))
|
| 452 |
+
|
| 453 |
+
st.subheader("Final Report")
|
| 454 |
+
st.write(output_dict.get("final_report"))
|
| 455 |
+
|
| 456 |
+
with st.spinner("Generating audio..."):
|
|
|
|
| 457 |
st.audio(audio_data, format="audio/mp3")
|
| 458 |
+
else:
|
| 459 |
+
st.error("Failed to generate audio.")
|
| 460 |
|
| 461 |
|
| 462 |
except requests.exceptions.RequestException as e:
|