Spaces:
Runtime error
Runtime error
udpate space description
Browse files- app.py +6 -2
- requirements.txt +3 -3
app.py
CHANGED
@@ -100,7 +100,6 @@ def export(
|
|
100 |
"The exported model does not have the same outputs as the original model. Export interrupted."
|
101 |
)
|
102 |
"""
|
103 |
-
|
104 |
new_repo_url = api.create_repo(repo_id=new_repo_id, exist_ok=True, private=private_repo)
|
105 |
new_repo_id = new_repo_url.repo_id
|
106 |
print("Repo created successfully!", new_repo_url)
|
@@ -162,6 +161,11 @@ def export(
|
|
162 |
finally:
|
163 |
shutil.rmtree(folder, ignore_errors=True)
|
164 |
|
|
|
|
|
|
|
|
|
|
|
165 |
|
166 |
model_id = HuggingfaceHubSearch(
|
167 |
label="Hub Model ID",
|
@@ -183,7 +187,7 @@ interface = gr.Interface(
|
|
183 |
gr.Markdown(label="output"),
|
184 |
],
|
185 |
title="Export your model to OpenVINO",
|
186 |
-
description=
|
187 |
api_name=False,
|
188 |
)
|
189 |
|
|
|
100 |
"The exported model does not have the same outputs as the original model. Export interrupted."
|
101 |
)
|
102 |
"""
|
|
|
103 |
new_repo_url = api.create_repo(repo_id=new_repo_id, exist_ok=True, private=private_repo)
|
104 |
new_repo_id = new_repo_url.repo_id
|
105 |
print("Repo created successfully!", new_repo_url)
|
|
|
161 |
finally:
|
162 |
shutil.rmtree(folder, ignore_errors=True)
|
163 |
|
164 |
+
DESCRIPTION = """
|
165 |
+
This Space uses [Optimum Intel](https://huggingface.co/docs/optimum/main/en/intel/openvino/export) to automatically export a model from the [Hub](https://huggingface.co/models) to the [OpenVINO format](https://docs.openvino.ai/2024/documentation/openvino-ir-format.html).
|
166 |
+
|
167 |
+
The resulting model will then be pushed under your HF user namespace. For now we only support conversion for models that are hosted on public repositories.
|
168 |
+
"""
|
169 |
|
170 |
model_id = HuggingfaceHubSearch(
|
171 |
label="Hub Model ID",
|
|
|
187 |
gr.Markdown(label="output"),
|
188 |
],
|
189 |
title="Export your model to OpenVINO",
|
190 |
+
description=DESCRIPTION,
|
191 |
api_name=False,
|
192 |
)
|
193 |
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
huggingface_hub==0.23.4
|
2 |
-
optimum[diffusers]==1.
|
3 |
-
optimum-intel[openvino]==1.18.
|
4 |
gradio[oauth]>=4.37.2
|
5 |
-
gradio_huggingfacehub_search==0.0.6
|
|
|
1 |
huggingface_hub==0.23.4
|
2 |
+
optimum[diffusers]==1.21.2
|
3 |
+
optimum-intel[openvino]==1.18.1
|
4 |
gradio[oauth]>=4.37.2
|
5 |
+
gradio_huggingfacehub_search==0.0.6
|