MrAli813 commited on
Commit
85a7c4c
·
verified ·
1 Parent(s): 94bd8c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -33,12 +33,12 @@ A1 = gr.ChatInterface(predict,
33
  retry_btn=None,
34
  clear_btn="Clear Conversation")
35
 
36
- A2 = gr.load("models/openai/whisper-large-v3",
37
  title=" ",
38
  description="Transcribe Speech and Audio Files",
39
  inputs=[gr.inputs.Audio(source="microphone", type="filepath", optional=True),
40
- gr.inputs.Audio(source="upload", type="filepath", optional=True, label="Audio file"),
41
- gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe")],)
42
 
43
  A3 = gr.load(
44
  "models/Salesforce/blip-image-captioning-large",
 
33
  retry_btn=None,
34
  clear_btn="Clear Conversation")
35
 
36
+ A2 = gr.load("openai/whisper-small",
37
  title=" ",
38
  description="Transcribe Speech and Audio Files",
39
  inputs=[gr.inputs.Audio(source="microphone", type="filepath", optional=True),
40
+ gr.inputs.Audio(source="upload", type="filepath", optional=True, label="Audio file")],
41
+ )
42
 
43
  A3 = gr.load(
44
  "models/Salesforce/blip-image-captioning-large",