Spaces:
Sleeping
Sleeping
gospacedev
commited on
Commit
•
6cdcca2
1
Parent(s):
f5387c6
remove spaces and newlines from output
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def generate_translation(prompt):
|
|
29 |
|
30 |
filtered_output = re.findall(emoji_pattern, output)
|
31 |
|
32 |
-
return ''.join(filtered_output)
|
33 |
|
34 |
|
35 |
with gr.Blocks() as demo:
|
|
|
29 |
|
30 |
filtered_output = re.findall(emoji_pattern, output)
|
31 |
|
32 |
+
return ''.join(filtered_output).replace(" ", "").replace("\n", "")
|
33 |
|
34 |
|
35 |
with gr.Blocks() as demo:
|