Spaces:
Runtime error
Runtime error
Xu Ma
commited on
Commit
·
755fb07
1
Parent(s):
3d9dcd8
update
Browse files- app.py +1 -2
- pydiffvg/render_pytorch.py +0 -3
app.py
CHANGED
|
@@ -3,7 +3,6 @@ os.system('python setup.py install --user')
|
|
| 3 |
import argparse
|
| 4 |
import csv
|
| 5 |
import sys
|
| 6 |
-
sys.path.append("./")
|
| 7 |
from pathlib import Path
|
| 8 |
|
| 9 |
import gradio as gr
|
|
@@ -37,7 +36,7 @@ def run_cmd(command):
|
|
| 37 |
# run_cmd("git submodule update --init --recursive")
|
| 38 |
# run_cmd("python setup.py install --user")
|
| 39 |
run_cmd("pip3 list")
|
| 40 |
-
import
|
| 41 |
|
| 42 |
print("Sccuessfuly import diffvg ")
|
| 43 |
# run_cmd("pwd")
|
|
|
|
| 3 |
import argparse
|
| 4 |
import csv
|
| 5 |
import sys
|
|
|
|
| 6 |
from pathlib import Path
|
| 7 |
|
| 8 |
import gradio as gr
|
|
|
|
| 36 |
# run_cmd("git submodule update --init --recursive")
|
| 37 |
# run_cmd("python setup.py install --user")
|
| 38 |
run_cmd("pip3 list")
|
| 39 |
+
import pydiffvg
|
| 40 |
|
| 41 |
print("Sccuessfuly import diffvg ")
|
| 42 |
# run_cmd("pwd")
|
pydiffvg/render_pytorch.py
CHANGED
|
@@ -1,7 +1,4 @@
|
|
| 1 |
import torch
|
| 2 |
-
import sys
|
| 3 |
-
sys.path.append("../")
|
| 4 |
-
sys.path.append("../../")
|
| 5 |
import diffvg
|
| 6 |
import pydiffvg
|
| 7 |
import time
|
|
|
|
| 1 |
import torch
|
|
|
|
|
|
|
|
|
|
| 2 |
import diffvg
|
| 3 |
import pydiffvg
|
| 4 |
import time
|