Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
import gradio as gr
|
2 |
|
3 |
#gr.load("models/Qwen/Qwen2.5-Coder-32B-Instruct").launch()
|
4 |
from huggingface_hub import InferenceClient
|
@@ -15,7 +15,7 @@ messages = [
|
|
15 |
completion = client.chat.completions.create(
|
16 |
model="Qwen/Qwen2.5-Coder-32B-Instruct",
|
17 |
messages=messages,
|
18 |
-
max_tokens=
|
19 |
)
|
20 |
|
21 |
print(completion.choices[0].message)
|
|
|
1 |
+
#import gradio as gr
|
2 |
|
3 |
#gr.load("models/Qwen/Qwen2.5-Coder-32B-Instruct").launch()
|
4 |
from huggingface_hub import InferenceClient
|
|
|
15 |
completion = client.chat.completions.create(
|
16 |
model="Qwen/Qwen2.5-Coder-32B-Instruct",
|
17 |
messages=messages,
|
18 |
+
max_tokens=2048
|
19 |
)
|
20 |
|
21 |
print(completion.choices[0].message)
|