Manyue-DataScientist commited on
Commit
45b780c
·
verified ·
1 Parent(s): 3a8a124

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py CHANGED
@@ -164,6 +164,21 @@ def display_text(segment):
164
  st.write(f"\"{segment['text']}\"")
165
  else:
166
  st.write("(no speech detected)")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
 
168
  if __name__ == "__main__":
169
  main()
 
164
  st.write(f"\"{segment['text']}\"")
165
  else:
166
  st.write("(no speech detected)")
167
+ def display_transcription(results):
168
+ """Display transcription text."""
169
+ if "transcription" in results and "text" in results["transcription"]:
170
+ st.write("Transcription:")
171
+ st.write(results["transcription"]["text"])
172
+ else:
173
+ st.warning("No transcription available.")
174
+ def display_summary(results):
175
+ """Display summarization results."""
176
+ if "summary" in results:
177
+ st.write("Summary:")
178
+ st.write(results["summary"])
179
+ else:
180
+ st.warning("No summary available.")
181
+
182
 
183
  if __name__ == "__main__":
184
  main()