Update app.py
Browse files
app.py
CHANGED
@@ -176,6 +176,21 @@ for i, summary in enumerate(summaries):
|
|
176 |
st.write(f"### Summary {i+1}")
|
177 |
st.write(summary)
|
178 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
|
180 |
# Citation for the GitHub repo
|
181 |
-
st.markdown("<sub>This app was created by [Tonic](https://huggingface.co/tonic)
|
|
|
176 |
st.write(f"### Summary {i+1}")
|
177 |
st.write(summary)
|
178 |
|
179 |
+
# Display the Whisper transcription, extracted claims, and BERT summaries in the same text box
|
180 |
+
if transcript:
|
181 |
+
st.text("Transcription, Extracted Claims, and BERT Summaries:")
|
182 |
+
|
183 |
+
# Concatenate the Whisper transcription, extracted claims, and BERT summaries into a single string
|
184 |
+
results_text = f"Whisper Transcription:\n{transcript}\n\n"
|
185 |
+
results_text += f"Extracted Claims:\n{claims_extracted}\n\n"
|
186 |
+
results_text += "BERT Summaries:\n"
|
187 |
+
|
188 |
+
with st.spinner('Generating Summaries...'):
|
189 |
+
for i, summary in enumerate(summaries):
|
190 |
+
results_text += f"Summary {i+1}:\n{summary}\n\n"
|
191 |
+
|
192 |
+
# Display the concatenated results
|
193 |
+
st.text(results_text)
|
194 |
|
195 |
# Citation for the GitHub repo
|
196 |
+
st.markdown("<sub>This app was created by [Tonic](https://huggingface.co/tonic) with help from [MIND INTERFACES](https://huggingface.co/MIND-INTERFACES) [join us on discord](https://discord.gg/5RmtZVVfgQ) </sub>", unsafe_allow_html=True)
|