riteshkr commited on
Commit
2a603ad
1 Parent(s): fd9b841

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,7 +53,7 @@ def transcribe(files, task, return_timestamps):
53
  mic_transcribe = gr.Interface(
54
  fn=transcribe,
55
  inputs=[
56
- gr.Audio(sources="microphone", type="filepath", optional=True),
57
  gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
58
  gr.Checkbox(default=False, label="Return timestamps"),
59
  ],
@@ -70,7 +70,7 @@ mic_transcribe = gr.Interface(
70
  file_transcribe = gr.Interface(
71
  fn=transcribe,
72
  inputs=[
73
- gr.Audio(sources="upload", type="filepath", label="Upload Audio File", optional=True),
74
  gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
75
  gr.Checkbox(default=False, label="Return timestamps"),
76
  ],
 
53
  mic_transcribe = gr.Interface(
54
  fn=transcribe,
55
  inputs=[
56
+ gr.Audio(sources="microphone", type="filepath"),
57
  gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
58
  gr.Checkbox(default=False, label="Return timestamps"),
59
  ],
 
70
  file_transcribe = gr.Interface(
71
  fn=transcribe,
72
  inputs=[
73
+ gr.Audio(sources="upload", type="filepath", label="Upload Audio File"),
74
  gr.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
75
  gr.Checkbox(default=False, label="Return timestamps"),
76
  ],