Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,14 +40,6 @@ def download_pdf():
|
|
| 40 |
download_name="downloaded_document.pdf"
|
| 41 |
)
|
| 42 |
|
| 43 |
-
@app.route('/view-pdf', methods=['GET'])
|
| 44 |
-
def view_pdf():
|
| 45 |
-
"""
|
| 46 |
-
Render an HTML page with the iframe to display the PDF.
|
| 47 |
-
"""
|
| 48 |
-
return render_template('gui.html') # Ensure this file exists in the 'templates' folder
|
| 49 |
-
|
| 50 |
-
|
| 51 |
if __name__ == '__main__':
|
| 52 |
app.run(host='0.0.0.0', port=7860)
|
| 53 |
|
|
|
|
| 40 |
download_name="downloaded_document.pdf"
|
| 41 |
)
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
if __name__ == '__main__':
|
| 44 |
app.run(host='0.0.0.0', port=7860)
|
| 45 |
|