Ahsen Khaliq commited on
Commit
e0a88d6
1 Parent(s): 756ac71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import os
 
2
  os.system("git clone https://github.com/salesforce/BLIP")
3
- os.chdir("BLIP")
4
  os.system("wget https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg/1024px-Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg -O mona.jpg")
5
 
6
  from PIL import Image
 
1
  import os
2
+ import sys
3
  os.system("git clone https://github.com/salesforce/BLIP")
4
+ sys.path.append("BLIP")
5
  os.system("wget https://upload.wikimedia.org/wikipedia/commons/thumb/e/ec/Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg/1024px-Mona_Lisa%2C_by_Leonardo_da_Vinci%2C_from_C2RMF_retouched.jpg -O mona.jpg")
6
 
7
  from PIL import Image