Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def get_diagram_code(prompt, diagram_type, api_key):
|
|
18 |
{"role": "system", "content": "You are a helpful assistant."},
|
19 |
{"role": "user", "content": f"Generate a {diagram_type} diagram in Mermaid.js syntax based on the following prompt: {prompt}"}
|
20 |
],
|
21 |
-
max_tokens=
|
22 |
)
|
23 |
|
24 |
return response['choices'][0]['message']['content'].strip()
|
|
|
18 |
{"role": "system", "content": "You are a helpful assistant."},
|
19 |
{"role": "user", "content": f"Generate a {diagram_type} diagram in Mermaid.js syntax based on the following prompt: {prompt}"}
|
20 |
],
|
21 |
+
max_tokens=2048
|
22 |
)
|
23 |
|
24 |
return response['choices'][0]['message']['content'].strip()
|