Illia56 commited on
Commit
600666f
1 Parent(s): 174e2c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -27,13 +27,6 @@ def predict(message, system_prompt="", temperature=0.9, max_new_tokens=4096):
27
  st.title(TITLE)
28
  st.write(DESCRIPTION)
29
 
30
- # Input fields
31
- message = st.text_area("Enter your message:", "")
32
- system_prompt = st.text_area("Optional system prompt:", "")
33
- temperature = st.slider("Temperature", min_value=0.0, max_value=1.0, value=0.9, step=0.05)
34
- max_new_tokens = st.slider("Max new tokens", min_value=0, max_value=4096, value=4096, step=64)
35
-
36
- if st.button("Predict"):
37
- response = predict(message, system_prompt, temperature, max_new_tokens)
38
- st.write("Response:", response)
39
-
 
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))