TheFriendlyNPC commited on
Commit
78d14e7
·
1 Parent(s): cfc88af

updated to fit style

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -64,7 +64,7 @@ def transcribe_translate(audio):
64
  return text_en,text_fr , (rate,wav)
65
 
66
 
67
- gr.Interface(
68
  fn=transcribe_translate,
69
  inputs=[
70
  gr.Audio(source="microphone", type="filepath")
@@ -74,5 +74,7 @@ gr.Interface(
74
  gr.Textbox(label= "French Translation"),
75
  gr.Audio(label = "French Audio")
76
  ],
77
- live=True).launch()
 
 
78
 
 
64
  return text_en,text_fr , (rate,wav)
65
 
66
 
67
+ iface = gr.Interface(
68
  fn=transcribe_translate,
69
  inputs=[
70
  gr.Audio(source="microphone", type="filepath")
 
74
  gr.Textbox(label= "French Translation"),
75
  gr.Audio(label = "French Audio")
76
  ],
77
+ live=True)
78
+
79
+ iface.launch()
80