Add test requirements
Browse files- app.py +2 -3
- pre-requirements.txt +1 -0
- requirements.txt +2 -0
app.py
CHANGED
|
@@ -12,13 +12,12 @@ 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(
|
| 16 |
sys.path.append(str(test_path))
|
| 17 |
|
| 18 |
from test_modeling import *
|
| 19 |
from test_stable_diffusion import *
|
| 20 |
|
| 21 |
-
|
| 22 |
def generate_model_list():
|
| 23 |
tests = []
|
| 24 |
d = {}
|
|
@@ -70,6 +69,6 @@ demo = gr.Interface(
|
|
| 70 |
title="List of validated architectures for optimum[openvino]",
|
| 71 |
inputs=[],
|
| 72 |
outputs=[gr.Markdown()],
|
| 73 |
-
allow_flagging=
|
| 74 |
)
|
| 75 |
demo.launch(server_name="0.0.0.0")
|
|
|
|
| 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 = {}
|
|
|
|
| 69 |
title="List of validated architectures for optimum[openvino]",
|
| 70 |
inputs=[],
|
| 71 |
outputs=[gr.Markdown()],
|
| 72 |
+
allow_flagging="never",
|
| 73 |
)
|
| 74 |
demo.launch(server_name="0.0.0.0")
|
pre-requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip==24.*
|
requirements.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
optimum-intel[tests,openvino]@git+https://github.com/huggingface/optimum-intel
|
| 2 |
+
tabulate
|