We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cf7095 commit b9bddc4Copy full SHA for b9bddc4
test2text/services/loaders/index_requirements.py
@@ -17,12 +17,9 @@ def index_requirements_from_files(files: list):
17
stringio = io.StringIO(file.getvalue().decode("utf-8"))
18
reader = csv.reader(stringio)
19
20
- if not list(reader):
21
- st.warning(f"The uploaded CSV file {file.name} is empty.")
22
- continue
23
-
24
if len(list(reader)) <= 3:
25
- st.warning(f"The uploaded CSV file {file.name}'s content is too short. There are only {len(list(reader))} lines.")
+ st.warning(f"The uploaded CSV file {file.name}'s content is too short. "
+ f"There are {len(list(reader))} lines inside.")
26
continue
27
28
for _ in range(3):
0 commit comments