zmbfeng commited on
Commit
5f35567
·
verified ·
1 Parent(s): 448dded

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -56,7 +56,7 @@ def create_response_untethered_paraphrased(input_str,
56
  outputs = ""
57
  for output_id in output_ids:
58
  output = tokenizer.decode(output_id, skip_special_tokens=True)
59
- outputs=outputs+output+"\\n"
60
  return outputs
61
 
62
 
@@ -286,7 +286,8 @@ interface3 = gr.Interface(fn=create_response_untethered_paraphrased,
286
  "If is set to True, the generate function will use stochastic sampling, which means that it will randomly" +
287
  " select a word from the probability distribution at each step. This results in a more diverse and creative" +
288
  " output, but it might also introduce errors and inconsistencies ", value=True)
289
- ], outputs=[gr.Textbox(label="output response", lines=30)])
 
290
 
291
 
292
 
 
56
  outputs = ""
57
  for output_id in output_ids:
58
  output = tokenizer.decode(output_id, skip_special_tokens=True)
59
+ outputs=outputs+output+"<br/>"
60
  return outputs
61
 
62
 
 
286
  "If is set to True, the generate function will use stochastic sampling, which means that it will randomly" +
287
  " select a word from the probability distribution at each step. This results in a more diverse and creative" +
288
  " output, but it might also introduce errors and inconsistencies ", value=True)
289
+ ], outputs="html")
290
+ #[gr.Textbox(label="output response", lines=30)]
291
 
292
 
293