Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
|
@@ -59,7 +59,7 @@ def convert(data: MarkdownInput):
|
|
| 59 |
os.remove(input_md)
|
| 60 |
|
| 61 |
descargas[uid] = 0
|
| 62 |
-
return {"message": "Archivo generado exitosamente", "url": f"/download/{uid}"}
|
| 63 |
|
| 64 |
except Exception as e:
|
| 65 |
return JSONResponse(content={"error": str(e)}, status_code=500)
|
|
|
|
| 59 |
os.remove(input_md)
|
| 60 |
|
| 61 |
descargas[uid] = 0
|
| 62 |
+
return {"message": "Archivo generado exitosamente, para descargar acceder a la URL", "url": f"https://jairodanielmt-markdown-docx.hf.space/download/{uid}"}
|
| 63 |
|
| 64 |
except Exception as e:
|
| 65 |
return JSONResponse(content={"error": str(e)}, status_code=500)
|