DSatishchandra commited on
Commit
b618fc5
1 Parent(s): 49689e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ async def food_order_interface(audio_input, food_type):
16
  # Create Gradio application
17
  async def create_demo():
18
  demo = gr.Interface(fn=food_order_interface,
19
- inputs=[gr.Audio(type="filepath", label="Order Food"), # Microphone input for audio file
20
  gr.Dropdown(choices=["Starters", "Main Course", "Desserts"], label="Food Type")],
21
  outputs=[gr.Audio(label="Order Confirmation Audio"),
22
  gr.Textbox(label="Confirmed Order Details", interactive=False)],
 
16
  # Create Gradio application
17
  async def create_demo():
18
  demo = gr.Interface(fn=food_order_interface,
19
+ inputs=[gr.Audio(source="microphone", type="filepath", label="Order Food"), # Microphone input for voice
20
  gr.Dropdown(choices=["Starters", "Main Course", "Desserts"], label="Food Type")],
21
  outputs=[gr.Audio(label="Order Confirmation Audio"),
22
  gr.Textbox(label="Confirmed Order Details", interactive=False)],