Spaces:
Sleeping
Sleeping
stevessschen
commited on
Commit
•
7d155ac
1
Parent(s):
08546ec
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
x = st.slider('Select a value')
|
4 |
-
st.
|
5 |
st.write(x, 'squared is', x * x)
|
6 |
|
7 |
# Use a pipeline as a high-level helper
|
@@ -12,5 +12,5 @@ prompt = "What is a large language model?"
|
|
12 |
#pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer, max_length=200)
|
13 |
result = pipe(f"<s>[INST] {prompt} [/INST]")
|
14 |
#print(result[0]['generated_text'])
|
15 |
-
st.
|
16 |
st.write(result[0]['generated_text'])
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
x = st.slider('Select a value')
|
4 |
+
st.write('steve test1')
|
5 |
st.write(x, 'squared is', x * x)
|
6 |
|
7 |
# Use a pipeline as a high-level helper
|
|
|
12 |
#pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer, max_length=200)
|
13 |
result = pipe(f"<s>[INST] {prompt} [/INST]")
|
14 |
#print(result[0]['generated_text'])
|
15 |
+
st.write('steve test2')
|
16 |
st.write(result[0]['generated_text'])
|