merve HF staff commited on
Commit
70ba1ec
·
1 Parent(s): 73cbe5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- def infer():
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"])