Spaces:
Runtime error
Runtime error
Pengyu-gis
commited on
Commit
•
5bf19a3
1
Parent(s):
288cc06
Rename web_demo.py to app.py
Browse files- app.py +5 -0
- web_demo.py +0 -8
app.py
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
!git clone https://github.com/NExT-ChatV/NExT-Chat.git
|
2 |
+
%cd NExT-Chat
|
3 |
+
!pip install -r requirements.txt
|
4 |
+
|
5 |
+
!CUDA_VISIBLE_DEVICES="0" python web_demo.py --model_path AoZhang/nextchat-7b-336 --vit_path openai/clip-vit-large-patch14-336
|
web_demo.py
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
import os
|
2 |
-
|
3 |
-
# Set the CUDA_VISIBLE_DEVICES environment variable
|
4 |
-
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
|
5 |
-
|
6 |
-
# Run the web demo
|
7 |
-
command = "python mllm/demo/web_demo.py --model_path AoZhang/nextchat-7b-336 --vit_path openai/clip-vit-large-patch14-336"
|
8 |
-
os.system(command)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|