Spaces:
Paused
Paused
Update main.py
Browse files
main.py
CHANGED
|
@@ -92,7 +92,7 @@ def api_home():
|
|
| 92 |
class HTMLRequest(BaseModel):
|
| 93 |
html_content: str
|
| 94 |
|
| 95 |
-
@app.post("/
|
| 96 |
async def convert_to_pdf(request: HTMLRequest):
|
| 97 |
try:
|
| 98 |
options = {
|
|
|
|
| 92 |
class HTMLRequest(BaseModel):
|
| 93 |
html_content: str
|
| 94 |
|
| 95 |
+
@app.post("/html_to_pdf")
|
| 96 |
async def convert_to_pdf(request: HTMLRequest):
|
| 97 |
try:
|
| 98 |
options = {
|