Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ async def serve_frontend():
|
|
55 |
# Route to handle infographic generation
|
56 |
@app.post("/generate")
|
57 |
async def generate_infographic(request: InfographicRequest):
|
58 |
-
|
59 |
prompt = PROMPT_TEMPLATE.format(description=description)
|
60 |
|
61 |
messages = [{"role": "user", "content": prompt}]
|
|
|
55 |
# Route to handle infographic generation
|
56 |
@app.post("/generate")
|
57 |
async def generate_infographic(request: InfographicRequest):
|
58 |
+
description = request.description
|
59 |
prompt = PROMPT_TEMPLATE.format(description=description)
|
60 |
|
61 |
messages = [{"role": "user", "content": prompt}]
|