yxchng
commited on
Commit
•
46907a9
1
Parent(s):
e42f870
app.py
CHANGED
@@ -4,14 +4,14 @@ import subprocess
|
|
4 |
|
5 |
import os
|
6 |
print("A")
|
7 |
-
os.system("curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > install.sh")
|
8 |
-
os.system("sh install.sh -y")
|
9 |
-
os.system('export PATH="$HOME/.cargo/bin:$PATH"')
|
10 |
print("B")
|
11 |
-
os.system('pip install tokenizers==0.8.1rc1')
|
12 |
print("C")
|
13 |
|
14 |
-
|
15 |
image_path = './image001.png'
|
16 |
sentence = 'spoon on the dish'
|
17 |
weights = 'model_best_refcoco_0508.pth'
|
|
|
4 |
|
5 |
import os
|
6 |
print("A")
|
7 |
+
#os.system("curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > install.sh")
|
8 |
+
#os.system("sh install.sh -y")
|
9 |
+
#os.system('export PATH="$HOME/.cargo/bin:$PATH"')
|
10 |
print("B")
|
11 |
+
#os.system('pip install tokenizers==0.8.1rc1')
|
12 |
print("C")
|
13 |
|
14 |
+
os.system('wget https://huggingface.co/yxchng/elia_refcoco/resolve/main/model_best_refcoco_0508.pth')
|
15 |
image_path = './image001.png'
|
16 |
sentence = 'spoon on the dish'
|
17 |
weights = 'model_best_refcoco_0508.pth'
|