Spaces:
Sleeping
Sleeping
File size: 669 Bytes
eb6055a 2bfb281 eb6055a 6dccd9f eb6055a 6dccd9f eb6055a 6dccd9f 0261d8f 6dccd9f |
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 model2 import ChatbotModel # Assuming your model code is saved as chatbot_model.py
# Load the chatbot model (replace "model.pt" with your actual saved model path if needed)
chatbot = ChatbotModel.load("model.pt")
def generate_response(user_input):
return chatbot.get_response(user_input)
# Define the Gradio interface
iface = gr.Interface(
fn=generate_response,
inputs="text",
outputs="text",
title="ACPC Counseling Chatbot",
description="Chatbot assistant for queries related to ACPC counseling, MYSY scholarships, and admissions."
)
if __name__ == "__main__":
# Launch the Gradio interface
iface.launch()
|