Spaces:
Sleeping
Sleeping
Update app.py
Browse files12345678910111213import gradio as grimport torch# Load the modelmodel = torch.load("model.pt") # Adjust as needed# Define the chatbot functiondef chatbot(input_text):# Use your model inference function hereresponse = get_response(input_text) # Call to your response functionreturn response# Define the Gradio interface12345678910111213import gradio as grfrom model2 import ChatbotModel# Load the model//model = torch.load("model.pt") # Adjust as needed# Define the chatbot functiondef chatbot(input_text):# Use your model inference function hereresponse = ChatbotModel.get_response(input_text) # Call to your response functionreturn response# Define the Gradio interface
app.py+3-3