Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +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 |
BOX_TAG_PATTERN = r"<box>([\s\S]*?)</box>"
|
20 |
PUNCTUATION = "!?。"#$%&'()*+,-/:;<=>@[\]^_`{|}~⦅⦆「」、、〃》「」『』​``【oaicite:0】``​〔〕〖〗〘〙〚〛〜〝〞〟〰〾〿–—‘’‛“”„‟…‧﹏."
|
@@ -96,8 +97,6 @@ Join us: TeamTonic is always making cool demos! Join our active builder's comm
|
|
96 |
file_upload = gr.File(label="Upload Image")
|
97 |
submit_btn = gr.Button("Submit")
|
98 |
|
99 |
-
task_history = []
|
100 |
-
|
101 |
submit_btn.click(
|
102 |
fn=process_input,
|
103 |
inputs=[query, file_upload, task_history],
|
|
|
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】``​〔〕〖〗〘〙〚〛〜〝〞〟〰〾〿–—‘’‛“”„‟…‧﹏."
|
|
|
97 |
file_upload = gr.File(label="Upload Image")
|
98 |
submit_btn = gr.Button("Submit")
|
99 |
|
|
|
|
|
100 |
submit_btn.click(
|
101 |
fn=process_input,
|
102 |
inputs=[query, file_upload, task_history],
|