Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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+"
|
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=
|
|
|
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 |
|