gospacedev commited on
Commit
a93bafe
โ€ข
1 Parent(s): d717ae5

update app.py

Browse files
Files changed (2) hide show
  1. app.py +0 -3
  2. haa.py +0 -10
app.py CHANGED
@@ -23,9 +23,6 @@ def generate_translation(prompt):
23
  output = ""
24
  emoji_pattern = r"[^\u0021-\u007E\u00A0-\uD7FF\uE000-\uFDCF\uFF00-\uFFEF\u10000-\u10FFFF\u0300-\u036F\u1F00-\u1F1F\u1F20-\u1F7F\u2600-\u26FF\u2700-\u27BF]+?"
25
 
26
- for response in stream:
27
- output += response.token.text
28
- yield output
29
  return re.findall(emoji_pattern, output)
30
 
31
 
 
23
  output = ""
24
  emoji_pattern = r"[^\u0021-\u007E\u00A0-\uD7FF\uE000-\uFDCF\uFF00-\uFFEF\u10000-\u10FFFF\u0300-\u036F\u1F00-\u1F1F\u1F20-\u1F7F\u2600-\u26FF\u2700-\u27BF]+?"
25
 
 
 
 
26
  return re.findall(emoji_pattern, output)
27
 
28
 
haa.py DELETED
@@ -1,10 +0,0 @@
1
- import re
2
-
3
-
4
-
5
- # Example usage:
6
- text = "This is a string with t๐Ÿค™๐Ÿ˜Š๐Ÿ˜Šext and emojis๐Ÿ‘‹๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜Š"
7
- filtered_emojis = filter_emojis(text)
8
-
9
- print(f"Original text: {text}")
10
- print(f"Filtered emojis: {filtered_emojis}")