Spaces:
Build error
Build error
Commit
•
8ad04f8
1
Parent(s):
243d864
- remove package importing from huggingface_hub
Browse files
app.py
CHANGED
@@ -5,11 +5,6 @@ import requests
|
|
5 |
import gradio as gr
|
6 |
|
7 |
import huggingface_hub
|
8 |
-
from huggingface_hub import (
|
9 |
-
get_full_repo_name,
|
10 |
-
upload_file,
|
11 |
-
)
|
12 |
-
|
13 |
|
14 |
def file_as_a_string(name_list: List[str]) -> str:
|
15 |
"""
|
@@ -69,7 +64,7 @@ def control_input_and_output_types(interface_list: List["gr.Interface"]) -> bool
|
|
69 |
|
70 |
|
71 |
def check_space_availability(hf_token: str, space_name: str) -> str:
|
72 |
-
repo_name = get_full_repo_name(model_id=space_name, token=hf_token)
|
73 |
# requests.get()
|
74 |
return repo_name
|
75 |
|
|
|
5 |
import gradio as gr
|
6 |
|
7 |
import huggingface_hub
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
def file_as_a_string(name_list: List[str]) -> str:
|
10 |
"""
|
|
|
64 |
|
65 |
|
66 |
def check_space_availability(hf_token: str, space_name: str) -> str:
|
67 |
+
repo_name = huggingface_hub.hf_api.get_full_repo_name(model_id=space_name, token=hf_token)
|
68 |
# requests.get()
|
69 |
return repo_name
|
70 |
|