Subha95's picture
Update app.py
ca3fbe5 verified
raw
history blame
487 Bytes
import gradio as gr
from ai_assistant import get_response
def respond(message, history):
print("📝 User question:", message)
answer = get_response(message, history)
print("🤖 Answer:", answer)
return answer
chatbot = gr.ChatInterface(
fn=respond,
type="messages",
title="Research Query Assistant",
description="Ask research questions, answers come from Mistral 7B quantized model (CPU optimized)."
)
if __name__ == "__main__":
chatbot.launch()