Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,7 +126,7 @@ def set_DRlink(dr_link: str):
|
|
| 126 |
|
| 127 |
# Use PyMuPDF to render the first page of the uploaded document
|
| 128 |
if file:
|
| 129 |
-
image, txt = purge_chat_and_render_first(NamedString(file_Path))
|
| 130 |
else:
|
| 131 |
raise gr.Error("Error reading DR Link!")
|
| 132 |
|
|
|
|
| 126 |
|
| 127 |
# Use PyMuPDF to render the first page of the uploaded document
|
| 128 |
if file:
|
| 129 |
+
image, txt = purge_chat_and_render_first(gr.utils.NamedString(file_Path))
|
| 130 |
else:
|
| 131 |
raise gr.Error("Error reading DR Link!")
|
| 132 |
|