Spaces:
Sleeping
Sleeping
File size: 417 Bytes
e01f817 d84bdab e01f817 d84bdab e01f817 d84bdab |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# Use a pipeline as a high-level helper
from transformers import pipeline
import streamlit as st
st.title("AI Chatbot")
st.write("Ask the AI a question and get an answer!")
user_question = st.chat_input("Enter your question:")
messages = [
{"role": "user", "content": user_question},
]
pipe = pipeline("text-generation", model="deepseek-ai/DeepSeek-R1-Zero", trust_remote_code=True)
st.write(pipe(messages)) |