Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -75,14 +75,14 @@ async def generate_infographic(request: InfographicRequest):
|
|
75 |
prompt = PROMPT_TEMPLATE.format(description=description)
|
76 |
|
77 |
messages = [{"role": "user", "content": prompt}]
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
|
87 |
|
88 |
generated_text = ""
|
|
|
75 |
prompt = PROMPT_TEMPLATE.format(description=description)
|
76 |
|
77 |
messages = [{"role": "user", "content": prompt}]
|
78 |
+
stream = client.chat.completions.create(
|
79 |
+
model="Qwen/Qwen2.5-Coder-32B-Instruct",
|
80 |
+
messages=messages,
|
81 |
+
temperature=0.4,
|
82 |
+
max_tokens=6000,
|
83 |
+
top_p=0.7,
|
84 |
+
stream=True,
|
85 |
+
)
|
86 |
|
87 |
|
88 |
generated_text = ""
|