up
Browse files
app.py
CHANGED
|
@@ -28,8 +28,11 @@ def go_gguf(model_repo_id, subfolder, arch, outtype, outfile_name, bigendian, ve
|
|
| 28 |
host_repo_id=host_repo_id,
|
| 29 |
hf_token=hf_token,
|
| 30 |
)
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
|
| 35 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
@@ -92,7 +95,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 92 |
)
|
| 93 |
|
| 94 |
convert_btn.click(
|
| 95 |
-
fn=
|
| 96 |
inputs=[model_repo_id, subfolder, arch, outtype, outfile_name, bigendian, verbose, host_repo_id, hf_token],
|
| 97 |
outputs=[url_output],
|
| 98 |
)
|
|
|
|
| 28 |
host_repo_id=host_repo_id,
|
| 29 |
hf_token=hf_token,
|
| 30 |
)
|
| 31 |
+
try:
|
| 32 |
+
convert(args)
|
| 33 |
+
return upload(args)
|
| 34 |
+
except Exception as e:
|
| 35 |
+
return e
|
| 36 |
|
| 37 |
|
| 38 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
|
|
| 95 |
)
|
| 96 |
|
| 97 |
convert_btn.click(
|
| 98 |
+
fn=go_gguf,
|
| 99 |
inputs=[model_repo_id, subfolder, arch, outtype, outfile_name, bigendian, verbose, host_repo_id, hf_token],
|
| 100 |
outputs=[url_output],
|
| 101 |
)
|