tcy6 commited on
Commit
43b7834
1 Parent(s): 099ac59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -67,6 +67,10 @@ def calculate_md5_from_binary(binary_data):
67
  def add_pdf_gradio(pdf_file_binary, progress=gr.Progress()):
68
  global model, tokenizer
69
  model.eval()
 
 
 
 
70
 
71
  knowledge_base_name = calculate_md5_from_binary(pdf_file_binary)
72
 
 
67
  def add_pdf_gradio(pdf_file_binary, progress=gr.Progress()):
68
  global model, tokenizer
69
  model.eval()
70
+
71
+ print(f"type pdf_file_binary: {type(pdf_file_binary)}")
72
+ print(f"len(pdf_file_binary): {len(pdf_file_binary)}")
73
+ print(f"type pdf_file_binary[0]: {type(pdf_file_binary[0])}")
74
 
75
  knowledge_base_name = calculate_md5_from_binary(pdf_file_binary)
76