Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -92,7 +92,7 @@ async def generate_infographic(request: InfographicRequest):
|
|
| 92 |
|
| 93 |
# print(generated_text)
|
| 94 |
#code_blocks= await extract_code_blocks(generated_text)
|
| 95 |
-
code_blocks=generate_infographic(description)
|
| 96 |
if code_blocks:
|
| 97 |
return JSONResponse(content={"html": code_blocks[0]})
|
| 98 |
else:
|
|
|
|
| 92 |
|
| 93 |
# print(generated_text)
|
| 94 |
#code_blocks= await extract_code_blocks(generated_text)
|
| 95 |
+
code_blocks= await generate_infographic(description)
|
| 96 |
if code_blocks:
|
| 97 |
return JSONResponse(content={"html": code_blocks[0]})
|
| 98 |
else:
|