Spaces:
Paused
Paused
Update app.py
#1
by
Narsil
HF staff
- opened
app.py
CHANGED
@@ -44,7 +44,7 @@ def create_medusa_heads(model_id: str):
|
|
44 |
distributed_run.run(args)
|
45 |
|
46 |
# Upload the medusa heads to the Hub
|
47 |
-
repo_id = f"
|
48 |
api = HfApi()
|
49 |
api.create_repo(
|
50 |
repo_id=repo_id,
|
@@ -87,7 +87,7 @@ def run(model_id: str) -> str:
|
|
87 |
proc = mp.Process(target=create_medusa_heads, args=(model_id, ))
|
88 |
proc.start()
|
89 |
proc.join()
|
90 |
-
repo_id = f"
|
91 |
print("Success β
\nMedusa heads uploaded to: ", repo_id)
|
92 |
return f"""
|
93 |
### Success π₯
|
|
|
44 |
distributed_run.run(args)
|
45 |
|
46 |
# Upload the medusa heads to the Hub
|
47 |
+
repo_id = f"{model_id}-medusa"
|
48 |
api = HfApi()
|
49 |
api.create_repo(
|
50 |
repo_id=repo_id,
|
|
|
87 |
proc = mp.Process(target=create_medusa_heads, args=(model_id, ))
|
88 |
proc.start()
|
89 |
proc.join()
|
90 |
+
repo_id = f"{model_id}/medusa"
|
91 |
print("Success β
\nMedusa heads uploaded to: ", repo_id)
|
92 |
return f"""
|
93 |
### Success π₯
|