Spaces:
Runtime error
Runtime error
Update utlis/helper.py
Browse files- utlis/helper.py +2 -1
utlis/helper.py
CHANGED
@@ -162,7 +162,8 @@ def add_document(token,servicename):
|
|
162 |
document_name = document_name.replace(")","_")
|
163 |
document_name = document_name.replace("-","_")
|
164 |
document_name = document_name.replace(".","_")
|
165 |
-
encoded_file = base64.b64encode(file.read()).decode('utf-8')
|
|
|
166 |
data = {
|
167 |
"token": token,
|
168 |
"service_name": servicename,
|
|
|
162 |
document_name = document_name.replace(")","_")
|
163 |
document_name = document_name.replace("-","_")
|
164 |
document_name = document_name.replace(".","_")
|
165 |
+
encoded_file = base64.b64encode(file.read()).decode('utf-8')
|
166 |
+
print(encoded_file)
|
167 |
data = {
|
168 |
"token": token,
|
169 |
"service_name": servicename,
|