saad177 commited on
Commit
a9a2aff
1 Parent(s): 0987717

fix mic bug

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -75,7 +75,7 @@ with gr.Blocks() as demo:
75
 
76
  def transcript(audio_input, youtube_input, radio):
77
  if radio == "Audio":
78
- txt = model(audio_input["text"])
79
  else:
80
  txt = youtube_to_text(youtube_input)
81
  history_gpt.append(
@@ -85,7 +85,6 @@ with gr.Blocks() as demo:
85
  + txt,
86
  }
87
  )
88
- print("tjrujf", txt)
89
  return txt
90
 
91
  btn.click(
 
75
 
76
  def transcript(audio_input, youtube_input, radio):
77
  if radio == "Audio":
78
+ txt = model(audio_input)["text"]
79
  else:
80
  txt = youtube_to_text(youtube_input)
81
  history_gpt.append(
 
85
  + txt,
86
  }
87
  )
 
88
  return txt
89
 
90
  btn.click(