Spaces:
Running
Running
Update app.py (#13)
Browse files- Update app.py (acceceb6662676a8432f1fd3db5eec56a2645f77)
app.py
CHANGED
@@ -20,7 +20,7 @@ from mlx_lm import convert
|
|
20 |
|
21 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
22 |
|
23 |
-
def process_model(model_id, q_method,):
|
24 |
if oauth_token.token is None:
|
25 |
raise ValueError("You must be logged in to use GGUF-my-repo")
|
26 |
model_name = model_id.split('/')[-1]
|
@@ -61,8 +61,7 @@ with gr.Blocks(css=css) as demo:
|
|
61 |
filterable=False,
|
62 |
visible=True
|
63 |
)
|
64 |
-
|
65 |
-
|
66 |
iface = gr.Interface(
|
67 |
fn=process_model,
|
68 |
inputs=[
|
|
|
20 |
|
21 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
22 |
|
23 |
+
def process_model(model_id, q_method,oauth_token: gr.OAuthToken | None):
|
24 |
if oauth_token.token is None:
|
25 |
raise ValueError("You must be logged in to use GGUF-my-repo")
|
26 |
model_name = model_id.split('/')[-1]
|
|
|
61 |
filterable=False,
|
62 |
visible=True
|
63 |
)
|
64 |
+
|
|
|
65 |
iface = gr.Interface(
|
66 |
fn=process_model,
|
67 |
inputs=[
|