AIVoice / app.py
DSatishchandra's picture
Update app.py
3d3c5c6 verified
raw
history blame
899 Bytes
import gradio as gr
import name
import asyncio
# Gradio interface function
def food_order_interface():
return name.food_order_assistant()
# Create Gradio application
async def create_demo():
demo = gr.Interface(fn=food_order_interface,
inputs=[gr.Textbox(label="Order Food", lines=2),
gr.Dropdown(choices=["Starters", "Main Course", "Desserts"], label="Food Type")],
outputs=[gr.Audio(label="Order Confirmation Audio"),
gr.Textbox(label="Confirmed Order Details", interactive=False)],
title="AI Restaurant Voice Ordering",
description="Order food easily with the AI assistant's voice ordering system.")
return demo
# Run the application
if __name__ == "__main__":
demo = asyncio.run(create_demo())
demo.launch()