Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def text_to_emoji(text):
|
|
24 |
# remove special characters
|
25 |
text_cleaned = re.sub(r"[.,!?;:]", "", text)
|
26 |
|
27 |
-
prompt = f"Convert this sentence into an emoji-sequence
|
28 |
response = client.text_generation(prompt, max_new_tokens=50)
|
29 |
return response
|
30 |
|
|
|
24 |
# remove special characters
|
25 |
text_cleaned = re.sub(r"[.,!?;:]", "", text)
|
26 |
|
27 |
+
prompt = f"Convert this sentence into an emoji-sequence which conveys a similar meaning and return only the emojis, no explanation:\n\n\"{text_cleaned}\""
|
28 |
response = client.text_generation(prompt, max_new_tokens=50)
|
29 |
return response
|
30 |
|