Spaces:
Sleeping
Sleeping
Oleg Shulyakov
commited on
Commit
·
8706a2e
1
Parent(s):
d10d482
Small updates
Browse files
app.py
CHANGED
|
@@ -257,6 +257,7 @@ def quantize_model(
|
|
| 257 |
def generate_readme(outdir: tempfile.TemporaryDirectory, token: str, model_id: str, new_repo_id: str, gguf_name: str):
|
| 258 |
creator = get_model_creator(model_id)
|
| 259 |
model_name = get_model_name(model_id)
|
|
|
|
| 260 |
|
| 261 |
try:
|
| 262 |
card = ModelCard.load(model_id, token=token)
|
|
@@ -275,7 +276,7 @@ def generate_readme(outdir: tempfile.TemporaryDirectory, token: str, model_id: s
|
|
| 275 |
|
| 276 |
**Model creator:** [{creator}](https://huggingface.co/{creator})
|
| 277 |
**Original model**: [{model_id}](https://huggingface.co/{model_id})
|
| 278 |
-
**GGUF quantization:** provided by [{
|
| 279 |
|
| 280 |
## Special thanks
|
| 281 |
|
|
@@ -591,7 +592,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 591 |
gr.LoginButton(min_width=250)
|
| 592 |
|
| 593 |
gr.HTML("<h1 style=\"text-aling:center;\">Create your own GGUF Quants!</h1>")
|
| 594 |
-
gr.Markdown(f"The space takes an HF repo as an input, quantizes it and creates a Public repo containing the selected quant under your HF user namespace
|
| 595 |
|
| 596 |
with gr.Row():
|
| 597 |
with gr.Column() as inputs:
|
|
|
|
| 257 |
def generate_readme(outdir: tempfile.TemporaryDirectory, token: str, model_id: str, new_repo_id: str, gguf_name: str):
|
| 258 |
creator = get_model_creator(model_id)
|
| 259 |
model_name = get_model_name(model_id)
|
| 260 |
+
username = whoami(oauth_token.token)["name"]
|
| 261 |
|
| 262 |
try:
|
| 263 |
card = ModelCard.load(model_id, token=token)
|
|
|
|
| 276 |
|
| 277 |
**Model creator:** [{creator}](https://huggingface.co/{creator})
|
| 278 |
**Original model**: [{model_id}](https://huggingface.co/{model_id})
|
| 279 |
+
**GGUF quantization:** provided by [{username}](https:/huggingface.co/{username}) using `llama.cpp`
|
| 280 |
|
| 281 |
## Special thanks
|
| 282 |
|
|
|
|
| 592 |
gr.LoginButton(min_width=250)
|
| 593 |
|
| 594 |
gr.HTML("<h1 style=\"text-aling:center;\">Create your own GGUF Quants!</h1>")
|
| 595 |
+
gr.Markdown(f"The space takes an HF repo as an input, quantizes it and creates a Public repo containing the selected quant under your HF user namespace.<br/>Use via {SPACE_URL}")
|
| 596 |
|
| 597 |
with gr.Row():
|
| 598 |
with gr.Column() as inputs:
|