Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ model.generation_config = GenerationConfig.from_pretrained(model_name, trust_rem
|
|
15 |
|
16 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
17 |
model.to(device)
|
18 |
-
|
19 |
|
20 |
BOX_TAG_PATTERN = r"<box>([\s\S]*?)</box>"
|
21 |
PUNCTUATION = "!?。"#$%&'()*+,-/:;<=>@[\]^_`{|}~⦅⦆「」、、〃》「」『』​``【oaicite:0】``​〔〕〖〗〘〙〚〛〜〝〞〟〰〾〿–—‘’‛“”„‟…‧﹏."
|
|
|
15 |
|
16 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
17 |
model.to(device)
|
18 |
+
task_history = []
|
19 |
|
20 |
BOX_TAG_PATTERN = r"<box>([\s\S]*?)</box>"
|
21 |
PUNCTUATION = "!?。"#$%&'()*+,-/:;<=>@[\]^_`{|}~⦅⦆「」、、〃》「」『』​``【oaicite:0】``​〔〕〖〗〘〙〚〛〜〝〞〟〰〾〿–—‘’‛“”„‟…‧﹏."
|