DSatishchandra commited on
Commit
9ef80fc
1 Parent(s): af776e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(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)],
 
9
  # Create Gradio application
10
  async def create_demo():
11
  demo = gr.Interface(fn=food_order_interface,
12
+ inputs=[gr.Audio(type="filepath", label="Order Food"), # Corrected: 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)],