Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +9 -0
src/streamlit_app.py
CHANGED
@@ -13,6 +13,15 @@ forums](https://discuss.streamlit.io).
|
|
13 |
In the meantime, below is an example of what you can do with just a few lines of code:
|
14 |
"""
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
num_points = st.slider("Number of points in spiral", 1, 10000, 1100)
|
17 |
num_turns = st.slider("Number of turns in spiral", 1, 300, 31)
|
18 |
|
|
|
13 |
In the meantime, below is an example of what you can do with just a few lines of code:
|
14 |
"""
|
15 |
|
16 |
+
# Use a pipeline as a high-level helper
|
17 |
+
from transformers import pipeline
|
18 |
+
|
19 |
+
messages = [
|
20 |
+
{"role": "user", "content": "Who are you?"},
|
21 |
+
]
|
22 |
+
pipe = pipeline("text-generation", model="deepseek-ai/DeepSeek-Prover-V2-671B", trust_remote_code=True)
|
23 |
+
st.write(pipe(messages))
|
24 |
+
|
25 |
num_points = st.slider("Number of points in spiral", 1, 10000, 1100)
|
26 |
num_turns = st.slider("Number of turns in spiral", 1, 300, 31)
|
27 |
|