yaelvinker commited on
Commit
d9450d8
·
1 Parent(s): 3b38618

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -1,7 +1,15 @@
1
  import torch
2
  import gradio as gr
 
 
 
 
 
 
 
 
 
3
  import pydiffvg
4
- import clip
5
 
6
  def greet(name):
7
  return "bka" + name + torch.__version__
 
1
  import torch
2
  import gradio as gr
3
+ import os
4
+ os.system('pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 -f https://download.pytorch.org/whl/torch_stable.html')
5
+ os.system('pip install git+https://github.com/openai/CLIP.git')
6
+ os.system('git clone https://github.com/BachiLi/diffvg')
7
+ os.system('cd diffvg')
8
+ os.system('git submodule update --init --recursive')
9
+ os.system('python setup.py install')
10
+ os.system('cd ..')
11
+
12
  import pydiffvg
 
13
 
14
  def greet(name):
15
  return "bka" + name + torch.__version__