Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ sent = st.text_area("Text", default_value, height = 275)
|
|
18 |
max_length = st.sidebar.slider("Max Length", min_value = 10, max_value=30)
|
19 |
num_return_sequences = st.sidebar.number_input('Number of Sequences to be Generated', min_value=1, max_value=5, value=1, step=1)
|
20 |
|
21 |
-
outputs = infer(sent, max_length, num_return_sequences)
|
22 |
|
23 |
#for output in outputs[0]:
|
24 |
st.write(outputs[0]["generated_text"])
|
|
|
18 |
max_length = st.sidebar.slider("Max Length", min_value = 10, max_value=30)
|
19 |
num_return_sequences = st.sidebar.number_input('Number of Sequences to be Generated', min_value=1, max_value=5, value=1, step=1)
|
20 |
|
21 |
+
outputs = infer(sent, max_length = max_length, num_return_sequences=num_return_sequences)
|
22 |
|
23 |
#for output in outputs[0]:
|
24 |
st.write(outputs[0]["generated_text"])
|