awacke1 commited on
Commit
af57b93
1 Parent(s): 6f37c1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -120,7 +120,7 @@ def transcribe(audio, state = ""):
120
  state = state + transcriptions + " "
121
  return state, state
122
 
123
- iface = gr.Interface(
124
  fn=transcribe,
125
  inputs=[
126
  gr.Audio(source="microphone", type='filepath', streaming=True),
@@ -137,5 +137,4 @@ iface = gr.Interface(
137
  allow_flagging='never',
138
  live=True,
139
  article=f"Result Output Saved to Memory💾 Dataset: [{DATASET_REPO_URL}]({DATASET_REPO_URL})"
140
- )
141
- iface.launch()
 
120
  state = state + transcriptions + " "
121
  return state, state
122
 
123
+ gr.Interface(
124
  fn=transcribe,
125
  inputs=[
126
  gr.Audio(source="microphone", type='filepath', streaming=True),
 
137
  allow_flagging='never',
138
  live=True,
139
  article=f"Result Output Saved to Memory💾 Dataset: [{DATASET_REPO_URL}]({DATASET_REPO_URL})"
140
+ ).launch()