yasserrmd commited on
Commit
1a23a7e
1 Parent(s): 3d6604f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
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
- 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 = ""
 
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 = ""