Illia56 commited on
Commit
46daa91
·
1 Parent(s): 5145a8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -27,6 +27,9 @@ def predict(message, system_prompt="", temperature=0.9, max_new_tokens=4096):
27
  st.title(TITLE)
28
  st.write(DESCRIPTION)
29
 
30
- prompt = st.chat_input("Say something")
31
  if prompt:
32
- st.write(predict(prompt, '',0.7,4096))
 
 
 
 
27
  st.title(TITLE)
28
  st.write(DESCRIPTION)
29
 
30
+ prompt = st.chat_input("Ask llama 2...")
31
  if prompt:
32
+ with st.chat_message("user"):
33
+ st.write(prompt)
34
+ with st.chat_message("llama",'🦙'):
35
+ st.write(predict(prompt, '',0.7,4096))