Spaces:
Running
Running
Commit
·
eebe32a
1
Parent(s):
d2a957f
Update app.py
Browse files
app.py
CHANGED
@@ -172,11 +172,9 @@ def swap_fill(profile: Optional[gr.OAuthProfile]):
|
|
172 |
def show_output():
|
173 |
return gr.update(visible=True)
|
174 |
|
175 |
-
def upload_civit_to_hf(profile: Optional[gr.OAuthProfile], url,
|
176 |
if not profile.name:
|
177 |
return gr.Error("Are you sure you are logged in?")
|
178 |
-
if civit_username != profile.preferred_username:
|
179 |
-
return gr.Error("You are not the model author")
|
180 |
|
181 |
folder = str(uuid.uuid4())
|
182 |
os.makedirs(folder, exist_ok=False)
|
|
|
172 |
def show_output():
|
173 |
return gr.update(visible=True)
|
174 |
|
175 |
+
def upload_civit_to_hf(profile: Optional[gr.OAuthProfile], url, progress=gr.Progress(track_tqdm=True)):
|
176 |
if not profile.name:
|
177 |
return gr.Error("Are you sure you are logged in?")
|
|
|
|
|
178 |
|
179 |
folder = str(uuid.uuid4())
|
180 |
os.makedirs(folder, exist_ok=False)
|