Spaces:
Running
Running
udpate requirements to support more models
Browse files- app.py +5 -6
- requirements.txt +2 -2
app.py
CHANGED
|
@@ -89,7 +89,7 @@ This Space uses [Optimum Intel](https://huggingface.co/docs/optimum/intel/infere
|
|
| 89 |
|
| 90 |
To export your model you need:
|
| 91 |
- A read-access token from [https://huggingface.co/settings/tokens](https://huggingface.co/settings/tokens).
|
| 92 |
-
- A Model ID from the Hub
|
| 93 |
|
| 94 |
|
| 95 |
That's it ! 🔥
|
|
@@ -100,16 +100,15 @@ After the model conversion, we will open a PR against the source repo.
|
|
| 100 |
interface = gr.Interface(
|
| 101 |
fn=export,
|
| 102 |
inputs=[
|
| 103 |
-
gr.Textbox(
|
| 104 |
-
max_lines=1,
|
| 105 |
-
label="Hugging Face token",
|
| 106 |
-
),
|
| 107 |
-
|
| 108 |
HuggingfaceHubSearch(
|
| 109 |
label="Hub Model ID",
|
| 110 |
placeholder="Search for model id on Huggingface",
|
| 111 |
search_type="model",
|
| 112 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
],
|
| 114 |
outputs=[
|
| 115 |
gr.Markdown(label="output"),
|
|
|
|
| 89 |
|
| 90 |
To export your model you need:
|
| 91 |
- A read-access token from [https://huggingface.co/settings/tokens](https://huggingface.co/settings/tokens).
|
| 92 |
+
- A Model ID from the Hub
|
| 93 |
|
| 94 |
|
| 95 |
That's it ! 🔥
|
|
|
|
| 100 |
interface = gr.Interface(
|
| 101 |
fn=export,
|
| 102 |
inputs=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
HuggingfaceHubSearch(
|
| 104 |
label="Hub Model ID",
|
| 105 |
placeholder="Search for model id on Huggingface",
|
| 106 |
search_type="model",
|
| 107 |
),
|
| 108 |
+
gr.Textbox(
|
| 109 |
+
max_lines=1,
|
| 110 |
+
label="Hugging Face token",
|
| 111 |
+
),
|
| 112 |
],
|
| 113 |
outputs=[
|
| 114 |
gr.Markdown(label="output"),
|
requirements.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
transformers
|
| 2 |
diffusers
|
| 3 |
git+https://github.com/huggingface/huggingface_hub
|
| 4 |
-
optimum==1.
|
| 5 |
-
optimum-intel[openvino]==1.
|
| 6 |
gradio[oauth]>=4.28.0
|
| 7 |
gradio_huggingfacehub_search==0.0.6
|
|
|
|
| 1 |
transformers
|
| 2 |
diffusers
|
| 3 |
git+https://github.com/huggingface/huggingface_hub
|
| 4 |
+
optimum==1.20.0
|
| 5 |
+
optimum-intel[openvino]==1.17.2
|
| 6 |
gradio[oauth]>=4.28.0
|
| 7 |
gradio_huggingfacehub_search==0.0.6
|