Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,9 +13,7 @@ generator = pipeline("text2text-generation" model = "mrm8488/t5-small-finetuned-
|
|
13 |
default_value = "How to put out a grease fire?"
|
14 |
sent = st.text_area("Input", default_value, height = 275)
|
15 |
num_return_sequences = st.sidebar.number_input('Number of Sequences to be Generated', min_value=1, max_value=5, value=1, step=1)
|
16 |
-
|
17 |
-
return generator(sent, num_return_sequences)
|
18 |
-
outputs = infer(sent, num_return_sequences)
|
19 |
st.write("Augmented Data:")
|
20 |
for output in outputs[0]:
|
21 |
st.write(outputs[0]["generated_text"])
|
|
|
13 |
default_value = "How to put out a grease fire?"
|
14 |
sent = st.text_area("Input", default_value, height = 275)
|
15 |
num_return_sequences = st.sidebar.number_input('Number of Sequences to be Generated', min_value=1, max_value=5, value=1, step=1)
|
16 |
+
outputs = generator(sent, num_return_sequences)
|
|
|
|
|
17 |
st.write("Augmented Data:")
|
18 |
for output in outputs[0]:
|
19 |
st.write(outputs[0]["generated_text"])
|