maahikachitagi commited on
Commit
bad29ea
·
verified ·
1 Parent(s): 39edcce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -12,9 +12,8 @@ from PIL import Image
12
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
13
  whisper_model = whisper.load_model("base")
14
 
15
- # Whisper transcription function
16
  def transcribe_audio(file_path):
17
- if file_path is None: # 🔧 THIS LINE FIXED YOUR BUG
18
  return "❌ No audio file provided."
19
 
20
  try:
 
12
  client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
13
  whisper_model = whisper.load_model("base")
14
 
 
15
  def transcribe_audio(file_path):
16
+ if file_path is None:
17
  return "❌ No audio file provided."
18
 
19
  try: