Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def process_file(file, topic):
|
|
43 |
|
44 |
# Spl
|
45 |
# Save chunks to database
|
46 |
-
save_to_db(text, topic)
|
47 |
|
48 |
return f"File processed successfully! file saved to the database."
|
49 |
except Exception as e:
|
|
|
43 |
|
44 |
# Spl
|
45 |
# Save chunks to database
|
46 |
+
save_to_db([text], topic)
|
47 |
|
48 |
return f"File processed successfully! file saved to the database."
|
49 |
except Exception as e:
|