dtkne commited on
Commit
32920c5
·
verified ·
1 Parent(s): 1ab9d68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -54,7 +54,7 @@ def transcribe_from_audio(audio_file):
54
  transcribed_text = " ".join([chunk["text"] for chunk in transcription_result["chunks"]])
55
  stored_transcript = transcribed_text
56
 
57
- if len(transcribed_text.split()) < 50:
58
  summarized_text = "Text too short to summarize."
59
  else:
60
  word_count = len(transcribed_text.split())
@@ -74,6 +74,8 @@ def transcribe_from_audio(audio_file):
74
  except Exception as e:
75
  return f"Error: {str(e)}", ""
76
 
 
 
77
  def answer_question(question):
78
  global stored_transcript
79
  if not stored_transcript:
 
54
  transcribed_text = " ".join([chunk["text"] for chunk in transcription_result["chunks"]])
55
  stored_transcript = transcribed_text
56
 
57
+ if len(transcribed_text.split()) < 50:
58
  summarized_text = "Text too short to summarize."
59
  else:
60
  word_count = len(transcribed_text.split())
 
74
  except Exception as e:
75
  return f"Error: {str(e)}", ""
76
 
77
+
78
+
79
  def answer_question(question):
80
  global stored_transcript
81
  if not stored_transcript: