wylum commited on
Commit
7e90ebb
·
verified ·
1 Parent(s): 5669be6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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