Update app.py
Browse files
app.py
CHANGED
|
@@ -8,17 +8,18 @@ from pathlib import Path
|
|
| 8 |
import gradio as gr
|
| 9 |
import pandas as pd
|
| 10 |
|
| 11 |
-
if Path("optimum-intel").is_dir():
|
| 12 |
-
subprocess.run(["git", "pull"], cwd="optimum-intel")
|
| 13 |
-
else:
|
| 14 |
-
subprocess.run(["git", "clone", "https://github.com/huggingface/optimum-intel.git"])
|
| 15 |
-
test_path = Path(__file__).parent / "optimum-intel" / "tests" / "openvino"
|
| 16 |
-
sys.path.append(str(test_path))
|
| 17 |
-
|
| 18 |
-
from test_modeling import *
|
| 19 |
-
from test_stable_diffusion import *
|
| 20 |
|
| 21 |
def generate_model_list():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
tests = []
|
| 23 |
d = {}
|
| 24 |
for item in globals().copy():
|
|
|
|
| 8 |
import gradio as gr
|
| 9 |
import pandas as pd
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
def generate_model_list():
|
| 13 |
+
if Path("optimum-intel").is_dir():
|
| 14 |
+
subprocess.run(["git", "pull"], cwd="optimum-intel")
|
| 15 |
+
else:
|
| 16 |
+
subprocess.run(["git", "clone", "https://github.com/huggingface/optimum-intel.git"])
|
| 17 |
+
test_path = Path(__file__).parent / "optimum-intel" / "tests" / "openvino"
|
| 18 |
+
sys.path.append(str(test_path))
|
| 19 |
+
|
| 20 |
+
from test_modeling import *
|
| 21 |
+
from test_stable_diffusion import *
|
| 22 |
+
|
| 23 |
tests = []
|
| 24 |
d = {}
|
| 25 |
for item in globals().copy():
|