Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,13 +36,6 @@ if st.button("Send"):
|
|
| 36 |
else:
|
| 37 |
st.error("No response from the model")
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
# Model selection
|
| 47 |
model = st.radio(
|
| 48 |
"Model",
|
|
@@ -60,7 +53,7 @@ model = st.radio(
|
|
| 60 |
# Input textbox
|
| 61 |
input_text = st.text_input(label="Type an input and press Enter", placeholder="What is Deep Learning?")
|
| 62 |
|
| 63 |
-
|
| 64 |
# Parameters
|
| 65 |
with st.expander("Parameters", expanded=False):
|
| 66 |
typical_p = st.slider("Typical P mass", min_value=0.0, max_value=1.0, value=0.2, step=0.05)
|
|
@@ -69,7 +62,7 @@ with st.expander("Parameters", expanded=False):
|
|
| 69 |
top_k = st.slider("Top-k", min_value=1, max_value=50, value=50, step=1)
|
| 70 |
repetition_penalty = st.slider("Repetition Penalty", min_value=0.1, max_value=3.0, value=1.03, step=0.01)
|
| 71 |
watermark = st.checkbox("Text watermarking", value=False)
|
| 72 |
-
|
| 73 |
# Submit button
|
| 74 |
if st.button("Submit"):
|
| 75 |
# Perform prediction
|
|
|
|
| 36 |
else:
|
| 37 |
st.error("No response from the model")
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
# Model selection
|
| 40 |
model = st.radio(
|
| 41 |
"Model",
|
|
|
|
| 53 |
# Input textbox
|
| 54 |
input_text = st.text_input(label="Type an input and press Enter", placeholder="What is Deep Learning?")
|
| 55 |
|
| 56 |
+
|
| 57 |
# Parameters
|
| 58 |
with st.expander("Parameters", expanded=False):
|
| 59 |
typical_p = st.slider("Typical P mass", min_value=0.0, max_value=1.0, value=0.2, step=0.05)
|
|
|
|
| 62 |
top_k = st.slider("Top-k", min_value=1, max_value=50, value=50, step=1)
|
| 63 |
repetition_penalty = st.slider("Repetition Penalty", min_value=0.1, max_value=3.0, value=1.03, step=0.01)
|
| 64 |
watermark = st.checkbox("Text watermarking", value=False)
|
| 65 |
+
'''
|
| 66 |
# Submit button
|
| 67 |
if st.button("Submit"):
|
| 68 |
# Perform prediction
|