Spaces:
Running
on
Zero
Running
on
Zero
add demo
Browse files- .gitignore +1 -0
- app.py +7 -0
- requirements.txt +2 -1
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
llava_env/
|
app.py
CHANGED
@@ -1,4 +1,11 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
import torch
|
3 |
from llava.model.builder import load_pretrained_model
|
4 |
from llava.mm_utils import get_model_name_from_path, process_images, tokenizer_image_token
|
|
|
1 |
import gradio as gr
|
2 |
+
import subprocess # 🥲
|
3 |
+
|
4 |
+
subprocess.run(
|
5 |
+
"pip install git+https://github.com/LLaVA-VL/LLaVA-NeXT.git",
|
6 |
+
shell=True,
|
7 |
+
)
|
8 |
+
|
9 |
import torch
|
10 |
from llava.model.builder import load_pretrained_model
|
11 |
from llava.mm_utils import get_model_name_from_path, process_images, tokenizer_image_token
|
requirements.txt
CHANGED
@@ -3,4 +3,5 @@ numpy
|
|
3 |
transformers
|
4 |
torch
|
5 |
torchvision
|
6 |
-
|
|
|
|
3 |
transformers
|
4 |
torch
|
5 |
torchvision
|
6 |
+
decord
|
7 |
+
einops
|