File size: 428 Bytes
e01f817
 
d84bdab
 
 
 
 
 
 
e01f817
 
419e54c
e01f817
419e54c
 
d84bdab
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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": "Who are you?"},
]
pipe = pipeline("text-generation", model="deepseek-ai/DeepSeek-V3", trust_remote_code=True)
pipe(messages)


st.write(pipe(messages))