Spaces:
Runtime error
Runtime error
tonic
commited on
Commit
•
f55f96c
1
Parent(s):
2ffde05
refactor the interface display (inputs)
Browse files
app.py
CHANGED
@@ -251,12 +251,13 @@ def process_input(image=None, file=None, audio=None, text="", translateto = "Eng
|
|
251 |
|
252 |
# Define the inputs and outputs for the Gradio Interface
|
253 |
inputs = [
|
|
|
|
|
|
|
254 |
gr.Image(type="pil", label="Camera Input"),
|
255 |
gr.File(label="File Upload"),
|
256 |
gr.Audio(sources="microphone", type="filepath", label="Mic Input"),
|
257 |
-
gr.Textbox(lines=2, label="Text Input")
|
258 |
-
gr.Dropdown(choices=choices, label="Your Native Language"),
|
259 |
-
gr.Dropdown(choices=choices, label="Language To Learn")
|
260 |
]
|
261 |
|
262 |
outputs = [
|
|
|
251 |
|
252 |
# Define the inputs and outputs for the Gradio Interface
|
253 |
inputs = [
|
254 |
+
|
255 |
+
gr.Dropdown(choices=choices, label="Your Native Language"),
|
256 |
+
gr.Dropdown(choices=choices, label="Language To Learn"),
|
257 |
gr.Image(type="pil", label="Camera Input"),
|
258 |
gr.File(label="File Upload"),
|
259 |
gr.Audio(sources="microphone", type="filepath", label="Mic Input"),
|
260 |
+
gr.Textbox(lines=2, label="Text Input")
|
|
|
|
|
261 |
]
|
262 |
|
263 |
outputs = [
|