Spaces:
Runtime error
Runtime error
Download app.py from Subha95/AI_Research_Assistant: direct link, hf CLI and curl.
- Browser
- Download file 488 Bytes
-
https://huggingface.co/spaces/Subha95/AI_Research_Assistant/resolve/main/app.py
- Command line
-
hf download hf://spaces/Subha95/AI_Research_Assistant/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Subha95/AI_Research_Assistant/resolve/main/app.py
488 Bytes
| 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) | |