career-bot / ui.py
Abhay838's picture
Upload 11 files
e4b11ea verified
raw
history blame contribute delete
377 Bytes
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
from bot_service import CareerBot
import gradio as gr
bot = CareerBot()
def chat_fn(message, history):
return bot.chat(message, history, user_id="TestUser")
if __name__ == "__main__":
print("๐Ÿš€ Starting Gradio UI...")
gr.ChatInterface(chat_fn, type="messages").launch()