Spaces:
Runtime error
Runtime error
update names and fix tags
Browse files- app.py +4 -4
- docker-compose.yml +3 -3
app.py
CHANGED
@@ -119,7 +119,7 @@ def escape(s: str) -> str:
|
|
119 |
|
120 |
def toggle_repo_owner(export_to_org, oauth_token: gr.OAuthToken | None):
|
121 |
if oauth_token is None or oauth_token.token is None:
|
122 |
-
raise gr.Error("You must be logged in to use
|
123 |
if not export_to_org:
|
124 |
return gr.update(visible=False, choices=["self"], value="self"), gr.update(
|
125 |
visible=False, value=""
|
@@ -263,11 +263,11 @@ def process_model(
|
|
263 |
oauth_token: gr.OAuthToken | None,
|
264 |
):
|
265 |
if oauth_token is None or oauth_token.token is None:
|
266 |
-
raise gr.Error("You must be logged in to use
|
267 |
try:
|
268 |
whoami(oauth_token.token)
|
269 |
except Exception as e:
|
270 |
-
raise gr.Error("You must be logged in to use
|
271 |
|
272 |
user_info = whoami(oauth_token.token)
|
273 |
username = user_info["name"]
|
@@ -431,7 +431,7 @@ def process_model(
|
|
431 |
card = ModelCard.load(model_id, token=oauth_token.token)
|
432 |
except:
|
433 |
card = ModelCard("")
|
434 |
-
card.data.tags = (card.data.tags or []) + ["
|
435 |
card.data.base_model = model_id
|
436 |
card.text = dedent(
|
437 |
get_llama_cpp_notes(gguf_files, new_repo_url, split_model, model_id)
|
|
|
119 |
|
120 |
def toggle_repo_owner(export_to_org, oauth_token: gr.OAuthToken | None):
|
121 |
if oauth_token is None or oauth_token.token is None:
|
122 |
+
raise gr.Error("You must be logged in to use quantize-my-repo")
|
123 |
if not export_to_org:
|
124 |
return gr.update(visible=False, choices=["self"], value="self"), gr.update(
|
125 |
visible=False, value=""
|
|
|
263 |
oauth_token: gr.OAuthToken | None,
|
264 |
):
|
265 |
if oauth_token is None or oauth_token.token is None:
|
266 |
+
raise gr.Error("You must be logged in to use quantize-my-repo")
|
267 |
try:
|
268 |
whoami(oauth_token.token)
|
269 |
except Exception as e:
|
270 |
+
raise gr.Error("You must be logged in to use quantize-my-repo")
|
271 |
|
272 |
user_info = whoami(oauth_token.token)
|
273 |
username = user_info["name"]
|
|
|
431 |
card = ModelCard.load(model_id, token=oauth_token.token)
|
432 |
except:
|
433 |
card = ModelCard("")
|
434 |
+
card.data.tags = (card.data.tags or []) + ["antigma", "quantize-my-repo"]
|
435 |
card.data.base_model = model_id
|
436 |
card.text = dedent(
|
437 |
get_llama_cpp_notes(gguf_files, new_repo_url, split_model, model_id)
|
docker-compose.yml
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
# Docker compose file to LOCAL development
|
2 |
|
3 |
services:
|
4 |
-
|
5 |
build:
|
6 |
context: .
|
7 |
dockerfile: Dockerfile
|
8 |
-
image:
|
9 |
-
container_name:
|
10 |
ports:
|
11 |
- "7860:7860"
|
12 |
volumes:
|
|
|
1 |
# Docker compose file to LOCAL development
|
2 |
|
3 |
services:
|
4 |
+
quantize-my-repo:
|
5 |
build:
|
6 |
context: .
|
7 |
dockerfile: Dockerfile
|
8 |
+
image: quantize-my-repo
|
9 |
+
container_name: quantize-my-repo
|
10 |
ports:
|
11 |
- "7860:7860"
|
12 |
volumes:
|