Tonic commited on
Commit
e1c3522
·
1 Parent(s): 77632a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -1
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) & [MIND INTERFACES](https://huggingface.co/MIND-INTERFACES) </sub>", unsafe_allow_html=True)
 
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)