Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
|