DrBenjamin commited on
Commit
d81fa80
1 Parent(s): 9654b35

added files

Browse files
Files changed (1) hide show
  1. pages/💁‍ Open_Assistant.py +2 -1
pages/💁‍ Open_Assistant.py CHANGED
@@ -11,9 +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
  client = InferenceAPIClient("OpenAssistant/oasst-sft-1-pythia-12b")
15
  text = client.generate("<|prompter|>Why is the sky blue?<|endoftext|><|assistant|>").generated_text
16
- st.write(text)
17
 
18
  # Token Streaming
19
  #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 = ""