File size: 653 Bytes
cdd07c8
3f0a2ea
d9450d8
5b95dc8
1c932d0
 
 
 
5b95dc8
d9450d8
 
 
5b95dc8
1c932d0
5b95dc8
d9450d8
 
 
 
9a2e588
c736cdc
3f0a2ea
11341b8
3f0a2ea
 
cdd07c8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import torch
import gradio as gr
import os

path = os.getcwd()

print(path)

os.system('ls')
os.system('pip install torch==1.7.1+cu101 torchvision==0.8.2+cu101 -f https://download.pytorch.org/whl/torch_stable.html')
os.system('pip install git+https://github.com/openai/CLIP.git')
os.system('git clone https://github.com/BachiLi/diffvg')
os.system('ls')
os.chdir('diffvg')
os.system('ls')
os.system('git submodule update --init --recursive')
os.system('python setup.py install')
os.system('cd ..')

import pydiffvg

def greet(name):
    return "bka" + name + torch.__version__

iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()