Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,8 @@ def my_inference_function(name):
|
|
20 |
)
|
21 |
output = tokenizer.decode(tokens[0], skip_special_tokens=True)
|
22 |
output=output.replace(f"(上司へのメール敬語で){mail}","")
|
23 |
-
|
|
|
24 |
|
25 |
gradio_interface = gradio.Interface(
|
26 |
fn = my_inference_function,
|
|
|
20 |
)
|
21 |
output = tokenizer.decode(tokens[0], skip_special_tokens=True)
|
22 |
output=output.replace(f"(上司へのメール敬語で){mail}","")
|
23 |
+
output=output.replace("\n", "")
|
24 |
+
return output
|
25 |
|
26 |
gradio_interface = gradio.Interface(
|
27 |
fn = my_inference_function,
|