Spaces:
Sleeping
Sleeping
File size: 769 Bytes
618bce1 4a92a4e 64530fe 4a92a4e 0d592f9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
from dependencies import *
from chatbot import ChatBot
bot = ChatBot()
def chat_function(prompts,history):
user_input = prompts
result = bot.rag_chain.invoke(user_input)
return result
iface = gr.ChatInterface(
fn=chat_function,
textbox = gr.Textbox(placeholder="Enter message here", container=False, scale = 7),
chatbot= gr.Chatbot(height=400),
title="NoQs Chatbot",
examples=[
["Hello, What are the Internship oportunities at NoQs?"],
["Why should I work at NoQs"],
["How do I contact you?"],
["Can I schedule a meet with Mr. Adit?"],
["Can you provide me the Internship Repository and other important links"],
["Tell me the difference between your programs"]
]
)
iface.launch()
|