Spaces:
Runtime error
Runtime error
ahmadtalha
commited on
Commit
•
f3c0f47
1
Parent(s):
80099c1
Update app.py
Browse files
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.
|
112 |
-
gr.
|
113 |
-
gr.
|
114 |
-
gr.
|
115 |
],
|
116 |
outputs=[
|
117 |
RichTextbox(label="Processed Text"),
|
118 |
-
gr.
|
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(
|
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=[
|