Update app.py
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ def respond(
|
|
| 62 |
max_tokens,
|
| 63 |
temperature,
|
| 64 |
top_p,
|
| 65 |
-
|
| 66 |
):
|
| 67 |
# Safe token handling
|
| 68 |
token = None
|
|
@@ -70,7 +70,7 @@ def respond(
|
|
| 70 |
token = hf_token.token
|
| 71 |
|
| 72 |
client = InferenceClient(
|
| 73 |
-
|
| 74 |
model="Qwen/Qwen2.5-Math-7B-Instruct"
|
| 75 |
)
|
| 76 |
def respond(
|
|
|
|
| 62 |
max_tokens,
|
| 63 |
temperature,
|
| 64 |
top_p,
|
| 65 |
+
# hf_token: gr.OAuthToken | None = None, # Make optional
|
| 66 |
):
|
| 67 |
# Safe token handling
|
| 68 |
token = None
|
|
|
|
| 70 |
token = hf_token.token
|
| 71 |
|
| 72 |
client = InferenceClient(
|
| 73 |
+
# token=token,
|
| 74 |
model="Qwen/Qwen2.5-Math-7B-Instruct"
|
| 75 |
)
|
| 76 |
def respond(
|