Spaces:
Runtime error
Runtime error
DrBenjamin
commited on
Commit
•
fc849f1
1
Parent(s):
d81fa80
added files
Browse files
pages/💁 Open_Assistant.py
CHANGED
@@ -11,10 +11,10 @@ from text_generation import InferenceAPIClient
|
|
11 |
|
12 |
st.header('💁 Open Assistant LLM')
|
13 |
st.write('This is the first iteration English supervised-fine-tuning (SFT) model of the Open-Assistant project. It is based on a Pythia 12B that was fine-tuned on ~22k human demonstrations of assistant conversations collected through the https://open-assistant.io/ human feedback web app before March 7, 2023.')
|
14 |
-
st.write('Question:green[Why is the sky blue?]')
|
15 |
client = InferenceAPIClient("OpenAssistant/oasst-sft-1-pythia-12b")
|
16 |
text = client.generate("<|prompter|>Why is the sky blue?<|endoftext|><|assistant|>").generated_text
|
17 |
-
st.write('Answer:green[' + str(text) + ']')
|
18 |
|
19 |
# Token Streaming
|
20 |
#text = ""
|
|
|
11 |
|
12 |
st.header('💁 Open Assistant LLM')
|
13 |
st.write('This is the first iteration English supervised-fine-tuning (SFT) model of the Open-Assistant project. It is based on a Pythia 12B that was fine-tuned on ~22k human demonstrations of assistant conversations collected through the https://open-assistant.io/ human feedback web app before March 7, 2023.')
|
14 |
+
st.write('Question: :green[Why is the sky blue?]')
|
15 |
client = InferenceAPIClient("OpenAssistant/oasst-sft-1-pythia-12b")
|
16 |
text = client.generate("<|prompter|>Why is the sky blue?<|endoftext|><|assistant|>").generated_text
|
17 |
+
st.write('Answer: :green[' + str(text) + ']')
|
18 |
|
19 |
# Token Streaming
|
20 |
#text = ""
|