Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def load_model():
|
|
16 |
return model
|
17 |
|
18 |
def get_response(
|
19 |
-
input_text, num_return_sequences, num_beams, max_length=
|
20 |
):
|
21 |
|
22 |
model = load_model()
|
@@ -27,7 +27,7 @@ def get_response(
|
|
27 |
|
28 |
num_beams = 10
|
29 |
num_return_sequences = st.slider("Number of paraphrases", 1, 5, 3, 1)
|
30 |
-
context = st.text_area(label="Write or paste text", max_chars=
|
31 |
|
32 |
with st.expander("Advanced"):
|
33 |
temperature = st.slider("Temperature", 0.1, 5.0, 1.5, 0.1)
|
|
|
16 |
return model
|
17 |
|
18 |
def get_response(
|
19 |
+
input_text, num_return_sequences, num_beams, max_length=128, temperature=1.5
|
20 |
):
|
21 |
|
22 |
model = load_model()
|
|
|
27 |
|
28 |
num_beams = 10
|
29 |
num_return_sequences = st.slider("Number of paraphrases", 1, 5, 3, 1)
|
30 |
+
context = st.text_area(label="Write or paste text", max_chars=512)
|
31 |
|
32 |
with st.expander("Advanced"):
|
33 |
temperature = st.slider("Temperature", 0.1, 5.0, 1.5, 0.1)
|