Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,7 @@ def transform_to_pdf(tex_content):
|
|
| 74 |
url = "https://www.latexonline.cc/compile"
|
| 75 |
|
| 76 |
# Send LaTeX source for compilation
|
| 77 |
-
response = requests.post(url, data={"text":
|
| 78 |
|
| 79 |
if response.status_code == 200:
|
| 80 |
pdf_url = response.url # Get the PDF URL
|
|
|
|
| 74 |
url = "https://www.latexonline.cc/compile"
|
| 75 |
|
| 76 |
# Send LaTeX source for compilation
|
| 77 |
+
response = requests.post(url, data={"text": tex_content, "target": "pdf"}, verify=False) # Disable SSL verification
|
| 78 |
|
| 79 |
if response.status_code == 200:
|
| 80 |
pdf_url = response.url # Get the PDF URL
|