Update app.py
Browse files
app.py
CHANGED
@@ -7,12 +7,13 @@ if not os.path.exists("edge_vlm"):
|
|
7 |
subprocess.run(["git", "clone", "https://huggingface.co/irotem98/edge_vlm"])
|
8 |
|
9 |
# Change directory to the cloned repository
|
10 |
-
os.chdir("edge_vlm")
|
11 |
-
sys.path.insert(0,'edge_vlm')
|
12 |
# Install the required dependencies
|
13 |
subprocess.run(["pip", "install", "-r", "requirements.txt"])
|
14 |
subprocess.run(["pip", "install", "transformers"])
|
15 |
|
|
|
|
|
|
|
16 |
# Now import the model from the cloned repository
|
17 |
from model import MoondreamModel
|
18 |
import torch
|
|
|
7 |
subprocess.run(["git", "clone", "https://huggingface.co/irotem98/edge_vlm"])
|
8 |
|
9 |
# Change directory to the cloned repository
|
|
|
|
|
10 |
# Install the required dependencies
|
11 |
subprocess.run(["pip", "install", "-r", "requirements.txt"])
|
12 |
subprocess.run(["pip", "install", "transformers"])
|
13 |
|
14 |
+
# os.chdir("edge_vlm")
|
15 |
+
sys.path.insert(0,'./edge_vlm')
|
16 |
+
|
17 |
# Now import the model from the cloned repository
|
18 |
from model import MoondreamModel
|
19 |
import torch
|