hrmph - dependency hell
Browse files- app.py +3 -4
- requirements.txt +1 -2
app.py
CHANGED
|
@@ -5,7 +5,6 @@ from huggingface_hub import HfApi
|
|
| 5 |
from huggingface_hub.errors import RepositoryNotFoundError
|
| 6 |
import pandas as pd
|
| 7 |
import plotly.express as px
|
| 8 |
-
from gradio_huggingfacehub_search import HuggingfaceHubSearch
|
| 9 |
|
| 10 |
HF_API = HfApi()
|
| 11 |
|
|
@@ -119,14 +118,14 @@ with gr.Blocks(theme="ocean") as demo:
|
|
| 119 |
"Enter a repository ID and repository type and get back information about the repository's files and branches."
|
| 120 |
)
|
| 121 |
with gr.Blocks():
|
| 122 |
-
|
| 123 |
-
|
| 124 |
repo_id = HuggingfaceHubSearch(
|
| 125 |
label="Hub Model ID",
|
| 126 |
placeholder="Search for model id on Huggingface",
|
| 127 |
search_type=["model", "dataset"],
|
| 128 |
)
|
| 129 |
-
|
| 130 |
repo_type = gr.Radio(
|
| 131 |
choices=["model", "dataset", "space"],
|
| 132 |
label="Repository Type",
|
|
|
|
| 5 |
from huggingface_hub.errors import RepositoryNotFoundError
|
| 6 |
import pandas as pd
|
| 7 |
import plotly.express as px
|
|
|
|
| 8 |
|
| 9 |
HF_API = HfApi()
|
| 10 |
|
|
|
|
| 118 |
"Enter a repository ID and repository type and get back information about the repository's files and branches."
|
| 119 |
)
|
| 120 |
with gr.Blocks():
|
| 121 |
+
repo_id = gr.Textbox(label="Repository ID", placeholder="123456")
|
| 122 |
+
"""
|
| 123 |
repo_id = HuggingfaceHubSearch(
|
| 124 |
label="Hub Model ID",
|
| 125 |
placeholder="Search for model id on Huggingface",
|
| 126 |
search_type=["model", "dataset"],
|
| 127 |
)
|
| 128 |
+
"""
|
| 129 |
repo_type = gr.Radio(
|
| 130 |
choices=["model", "dataset", "space"],
|
| 131 |
label="Repository Type",
|
requirements.txt
CHANGED
|
@@ -51,5 +51,4 @@ typing-extensions==4.12.2
|
|
| 51 |
tzdata==2024.2
|
| 52 |
urllib3==2.2.3
|
| 53 |
uvicorn==0.32.0
|
| 54 |
-
websockets==12.0
|
| 55 |
-
gradio_huggingfacehub_search==0.0.7
|
|
|
|
| 51 |
tzdata==2024.2
|
| 52 |
urllib3==2.2.3
|
| 53 |
uvicorn==0.32.0
|
| 54 |
+
websockets==12.0
|
|
|