Spaces:
Build error
Build error
DSatishchandra
commited on
Commit
•
af776e3
1
Parent(s):
3da8444
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def food_order_interface(audio_input, food_type):
|
|
9 |
# Create Gradio application
|
10 |
async def create_demo():
|
11 |
demo = gr.Interface(fn=food_order_interface,
|
12 |
-
inputs=[gr.Audio(type="
|
13 |
gr.Dropdown(choices=["Starters", "Main Course", "Desserts"], label="Food Type")],
|
14 |
outputs=[gr.Audio(label="Order Confirmation Audio"),
|
15 |
gr.Textbox(label="Confirmed Order Details", interactive=False)],
|
|
|
9 |
# Create Gradio application
|
10 |
async def create_demo():
|
11 |
demo = gr.Interface(fn=food_order_interface,
|
12 |
+
inputs=[gr.Audio(source="microphone", type="filepath", label="Order Food"), # Microphone input for audio file
|
13 |
gr.Dropdown(choices=["Starters", "Main Course", "Desserts"], label="Food Type")],
|
14 |
outputs=[gr.Audio(label="Order Confirmation Audio"),
|
15 |
gr.Textbox(label="Confirmed Order Details", interactive=False)],
|