wylum commited on
Commit
0b6a473
·
verified ·
1 Parent(s): 6e3cd09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -121,7 +121,7 @@ def set_DRlink(dr_link: str):
121
  if response.status_code == 200:
122
  with open(file_Path, 'wb') as file:
123
  file.write(response.content)
124
- print('File downloaded successfully')
125
 
126
 
127
  # Use PyMuPDF to render the first page of the uploaded document
@@ -360,6 +360,7 @@ def render_file(file):
360
 
361
  def purge_chat_and_render_first(file):
362
  print("purge_chat_and_render_first")
 
363
  # Purges the previous chat session so that the bot has no concept of previous documents
364
  chat_history = []
365
  history = []
 
121
  if response.status_code == 200:
122
  with open(file_Path, 'wb') as file:
123
  file.write(response.content)
124
+ print('File downloaded successfully to: ' + file.name)
125
 
126
 
127
  # Use PyMuPDF to render the first page of the uploaded document
 
360
 
361
  def purge_chat_and_render_first(file):
362
  print("purge_chat_and_render_first")
363
+ print("file class= "+ type(file))
364
  # Purges the previous chat session so that the bot has no concept of previous documents
365
  chat_history = []
366
  history = []