Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -57,9 +57,14 @@ async def upload_file(username: str, file_to_process: FileToProcess = Depends())
|
|
| 57 |
if text:
|
| 58 |
raw_text += text
|
| 59 |
temp_texts = text_splitter.split_text(raw_text)
|
|
|
|
| 60 |
print(temp_texts)
|
|
|
|
|
|
|
| 61 |
api_call_msg={"INFO": f"File '{uploaded_file.filename}' saved to your profile."}
|
| 62 |
print(api_call_msg)
|
| 63 |
|
|
|
|
|
|
|
| 64 |
#return {"INFO": f"File '{uploaded_file.filename}' saved to your profile."}
|
| 65 |
return api_call_msg
|
|
|
|
| 57 |
if text:
|
| 58 |
raw_text += text
|
| 59 |
temp_texts = text_splitter.split_text(raw_text)
|
| 60 |
+
|
| 61 |
print(temp_texts)
|
| 62 |
+
print()
|
| 63 |
+
|
| 64 |
api_call_msg={"INFO": f"File '{uploaded_file.filename}' saved to your profile."}
|
| 65 |
print(api_call_msg)
|
| 66 |
|
| 67 |
+
print("API call finished...")
|
| 68 |
+
|
| 69 |
#return {"INFO": f"File '{uploaded_file.filename}' saved to your profile."}
|
| 70 |
return api_call_msg
|