File size: 510 Bytes
c800729
211fd6e
c800729
211fd6e
 
c800729
211fd6e
 
c800729
211fd6e
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import gradio as gr
from models.hotel_booking_model import HotelBookingAgent

# Create an instance of the chatbot model
model = HotelBookingAgent()

def chatbot_function(user_input):
    return model.generate_response(user_input)

# Gradio interface
iface = gr.Interface(
    fn=chatbot_function,
    inputs=["text", "audio"],
    outputs=["text"],
    live=True,
    title="Hotel Booking Chatbot",
    description="Ask about hotel bookings with voice or text input",
    theme="huggingface"
)

iface.launch()