Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,13 @@
|
|
1 |
-
|
2 |
from argparse import ArgumentParser
|
3 |
from pathlib import Path
|
|
|
4 |
import copy
|
5 |
import gradio as gr
|
6 |
import os
|
7 |
import re
|
8 |
import secrets
|
9 |
import tempfile
|
10 |
-
from modelscope import (
|
11 |
-
AutoModelForCausalLM, AutoTokenizer, GenerationConfig, snapshot_download
|
12 |
-
)
|
13 |
|
14 |
os.environ['CUDA_VISIBLE_DEVICES'] = '0,1'
|
15 |
DEFAULT_CKPT_PATH = 'qwen/Qwen-VL-Chat'
|
|
|
1 |
+
from modelscope import AutoModelForCausalLM, AutoTokenizer, GenerationConfig, snapshot_download
|
2 |
from argparse import ArgumentParser
|
3 |
from pathlib import Path
|
4 |
+
import shutil
|
5 |
import copy
|
6 |
import gradio as gr
|
7 |
import os
|
8 |
import re
|
9 |
import secrets
|
10 |
import tempfile
|
|
|
|
|
|
|
11 |
|
12 |
os.environ['CUDA_VISIBLE_DEVICES'] = '0,1'
|
13 |
DEFAULT_CKPT_PATH = 'qwen/Qwen-VL-Chat'
|