Spaces:
Build error
Build error
Commit
·
243d864
1
Parent(s):
01bbb9b
- Remove create_repo as it cannot be imported,
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import numpy as np
|
|
| 4 |
import requests
|
| 5 |
import gradio as gr
|
| 6 |
|
|
|
|
| 7 |
from huggingface_hub import (
|
| 8 |
get_full_repo_name,
|
| 9 |
upload_file,
|
|
@@ -84,7 +85,7 @@ def space_builder(spaces: str, hf_token: str, username: str, space_name: str, sp
|
|
| 84 |
:return:
|
| 85 |
"""
|
| 86 |
# return "Thank you for using the draft, it will be completed later"
|
| 87 |
-
return check_space_availability(hf_token, space_name)
|
| 88 |
|
| 89 |
|
| 90 |
iface = gr.Interface(
|
|
|
|
| 4 |
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,
|
|
|
|
| 85 |
:return:
|
| 86 |
"""
|
| 87 |
# return "Thank you for using the draft, it will be completed later"
|
| 88 |
+
return check_space_availability(hf_token, space_name) + "version of huggingface_hub :" + huggingface_hub.__version__
|
| 89 |
|
| 90 |
|
| 91 |
iface = gr.Interface(
|