Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
import subprocess
|
2 |
import sys
|
|
|
3 |
subprocess.run(['git', 'clone', 'https://github.com/paralym/LLaVA-NeXT.git'], check=True)
|
4 |
-
|
5 |
subprocess.check_call([sys.executable, '-m', "pip", "install", "-e", "."])
|
6 |
-
|
7 |
# from .demo_modelpart import InferenceDemo
|
8 |
import gradio as gr
|
9 |
import os
|
|
|
1 |
import subprocess
|
2 |
import sys
|
3 |
+
import os
|
4 |
subprocess.run(['git', 'clone', 'https://github.com/paralym/LLaVA-NeXT.git'], check=True)
|
5 |
+
os.chdir("LLaVA-NeXT")
|
6 |
subprocess.check_call([sys.executable, '-m', "pip", "install", "-e", "."])
|
7 |
+
os.chdir("..")
|
8 |
# from .demo_modelpart import InferenceDemo
|
9 |
import gradio as gr
|
10 |
import os
|