Spaces:
Runtime error
Runtime error
| 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() |