Spaces:
Runtime error
Runtime error
File size: 488 Bytes
7e2ef9f ca3fbe5 6dc85f0 2468a73 c72d8d8 6dc85f0 ca3fbe5 6dc85f0 2468a73 c72d8d8 6dc85f0 c72d8d8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
from ai_assistant import get_response
def respond(message, history):
print("📝 User query:", message)
response = get_response(message)
print("🤖 Response:", response)
return response
chatbot = gr.ChatInterface(
fn=respond,
type="messages",
title="Research Query Assistant",
description="Ask research questions and get answers from Mistral-7B with 8-bit quantization.",
)
if __name__ == "__main__":
chatbot.launch(share=True)
|