Spaces:
Build error
Build error
artificialguybr
commited on
Commit
•
73f07d6
1
Parent(s):
a2adb84
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen-VL-Chat-Int4", trust_remote
|
|
13 |
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen-VL-Chat-Int4", device_map="auto", trust_remote_code=True).eval()
|
14 |
|
15 |
BOX_TAG_PATTERN = r"<box>([\s\S]*?)</box>"
|
16 |
-
PUNCTUATION = "
|
17 |
|
18 |
def _parse_text(text):
|
19 |
lines = text.split("\n")
|
|
|
13 |
model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen-VL-Chat-Int4", device_map="auto", trust_remote_code=True).eval()
|
14 |
|
15 |
BOX_TAG_PATTERN = r"<box>([\s\S]*?)</box>"
|
16 |
+
PUNCTUATION = "!?。"#$%&'()*+,-/:;<=>@[\]^_`{|}~⦅⦆「」、、〃》「」『』【】〔〕〖〗〘〙〚〛〜〝〞〟〰〾〿–—‘’‛“”„‟…‧﹏."
|
17 |
|
18 |
def _parse_text(text):
|
19 |
lines = text.split("\n")
|