Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -238,8 +238,8 @@ def build_space(t_space,t_title,t_description=None,t_name=None,t_redirect=None,t
|
|
238 |
if t_redirect == None:
|
239 |
t_redirect = t_space
|
240 |
if t_name == None:
|
241 |
-
t_name = t_space.split("//",1)[1].split(".",1)[0]
|
242 |
-
|
243 |
|
244 |
|
245 |
model_id=t_name
|
|
|
238 |
if t_redirect == None:
|
239 |
t_redirect = t_space
|
240 |
if t_name == None:
|
241 |
+
t_name = t_space.split("//",1)[1].split(".hf",1)[0]
|
242 |
+
print (t_name)
|
243 |
|
244 |
|
245 |
model_id=t_name
|