ahmadtalha commited on
Commit
f3c0f47
1 Parent(s): 80099c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -108,14 +108,14 @@ def process_input(image=None, file=None, audio=None, text=""):
108
  iface = gr.Interface(
109
  fn=process_input,
110
  inputs=[
111
- gr.inputs.Image(type="pil", label="Camera Input"),
112
- gr.inputs.File(label="File Upload"),
113
- gr.inputs.Audio(source="microphone", type="filepath", label="Mic Input"),
114
- gr.inputs.Textbox(lines=2, label="Text Input")
115
  ],
116
  outputs=[
117
  RichTextbox(label="Processed Text"),
118
- gr.outputs.Audio(label="Audio Output")
119
  ],
120
  title=title,
121
  description=description
@@ -164,7 +164,7 @@ iface = gr.Interface(
164
  inputs=[
165
  gr.Image(type="pil", label="Camera Input"),
166
  gr.File(label="File Upload"),
167
- gr.Audio(source="microphone", type="filepath", label="Mic Input"),
168
  gr.Textbox(lines=2, label="Text Input")
169
  ],
170
  outputs=[
 
108
  iface = gr.Interface(
109
  fn=process_input,
110
  inputs=[
111
+ gr.Image(type="pil", label="Camera Input"),
112
+ gr.File(label="File Upload"),
113
+ gr.Audio(sources="microphone", type="filepath", label="Mic Input"),
114
+ gr.Textbox(lines=2, label="Text Input")
115
  ],
116
  outputs=[
117
  RichTextbox(label="Processed Text"),
118
+ gr.Audio(label="Audio Output")
119
  ],
120
  title=title,
121
  description=description
 
164
  inputs=[
165
  gr.Image(type="pil", label="Camera Input"),
166
  gr.File(label="File Upload"),
167
+ gr.Audio(sources="microphone", type="filepath", label="Mic Input"),
168
  gr.Textbox(lines=2, label="Text Input")
169
  ],
170
  outputs=[