Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,6 @@ os.chdir("CogView2")
|
|
14 |
os.system("gdown https://drive.google.com/uc?id=1-2nI2TTUOdiQ2WpydGafk_bZIZggQBK4")
|
15 |
os.system("7za x coglm.zip")
|
16 |
os.system("gdown https://drive.google.com/uc?id=1ulfXJFstYZUestvWcQIadKkNNDVbpIdM")
|
17 |
-
os.mkdir("/root/.icetk_models")
|
18 |
-
os.system("cp /home/user/app/CogView2/ice_image.pt /root/.icetk_models/ice_image.pt")
|
19 |
|
20 |
def inference(text):
|
21 |
with open("input.txt") as f:
|
|
|
14 |
os.system("gdown https://drive.google.com/uc?id=1-2nI2TTUOdiQ2WpydGafk_bZIZggQBK4")
|
15 |
os.system("7za x coglm.zip")
|
16 |
os.system("gdown https://drive.google.com/uc?id=1ulfXJFstYZUestvWcQIadKkNNDVbpIdM")
|
|
|
|
|
17 |
|
18 |
def inference(text):
|
19 |
with open("input.txt") as f:
|