Update app.py
Browse files
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 |
-
|
31 |
-
|
32 |
-
|
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))
|
|
|
|
|
|
|
|
|
|
|
|
|
|