ai01firebird commited on
Commit
3e41b84
·
verified ·
1 Parent(s): 57bc78a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 of the same 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
 
 
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