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(
|
| 130 |
else:
|
| 131 |
raise gr.Error("Error reading DR Link!")
|
| 132 |
|
|
@@ -134,7 +134,7 @@ def set_DRlink(dr_link: str):
|
|
| 134 |
|
| 135 |
#return disable_box
|
| 136 |
#return dr_link
|
| 137 |
-
return dr_link, image, [],
|
| 138 |
|
| 139 |
def add_text(history, text: str):
|
| 140 |
if not text:
|
|
|
|
| 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 |
|
|
|
|
| 134 |
|
| 135 |
#return disable_box
|
| 136 |
#return dr_link
|
| 137 |
+
return dr_link, image, [], NamedString(file_Path)
|
| 138 |
|
| 139 |
def add_text(history, text: str):
|
| 140 |
if not text:
|