Spaces:
Runtime error
Runtime error
Commit
·
3801813
1
Parent(s):
129f554
Update app.py
Browse files
app.py
CHANGED
@@ -28,9 +28,9 @@ def run(model_id):
|
|
28 |
api = HfApi(token=HF_TOKEN)
|
29 |
if not api.repo_exists(model_id):
|
30 |
raise gr.Error('Unable to locate repo')
|
31 |
-
|
32 |
-
background_thread = threading.Thread(target=convert, args=(api, model_id))
|
33 |
-
background_thread.start()
|
34 |
repo_id = username + "/" + slugify(model_id.strip()) + "-GGUF"
|
35 |
string = f"""## Quantizing
|
36 |
We are quantizing the model now. If it is successful and it works, it will be available [here](https://huggingface.co/{repo_id}). It may take up to several hours to complete. If it does not work after several hours, please try again. If it does not work after many tries, please contact us.""".strip()
|
|
|
28 |
api = HfApi(token=HF_TOKEN)
|
29 |
if not api.repo_exists(model_id):
|
30 |
raise gr.Error('Unable to locate repo')
|
31 |
+
repo_id = convert(api=api, model_id=model_id)
|
32 |
+
# background_thread = threading.Thread(target=convert, args=(api, model_id))
|
33 |
+
# background_thread.start()
|
34 |
repo_id = username + "/" + slugify(model_id.strip()) + "-GGUF"
|
35 |
string = f"""## Quantizing
|
36 |
We are quantizing the model now. If it is successful and it works, it will be available [here](https://huggingface.co/{repo_id}). It may take up to several hours to complete. If it does not work after several hours, please try again. If it does not work after many tries, please contact us.""".strip()
|