Spaces:
Running on CPU Upgrade

lunarflu HF staff commited on
Commit
fa090dc
·
verified ·
1 Parent(s): bbc5061

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -12
app.py CHANGED
@@ -357,18 +357,12 @@ async def test3(ctx):
357
  # print first 5 as test
358
  with open(csv_file_path, 'r') as csv_file:
359
  csv_reader = csv.reader(csv_file)
360
- rows = list(csv_reader)
361
-
362
- for r in range(5):
363
- row = next(csv_reader, None)
364
- if row is not None:
365
- print(row)
366
- else:
367
- break
368
-
369
-
370
-
371
- for row in rows:
372
  if target_id in row:
373
  index_of_target = row.index(target_id)
374
 
 
357
  # print first 5 as test
358
  with open(csv_file_path, 'r') as csv_file:
359
  csv_reader = csv.reader(csv_file)
360
+ for row in csv_reader:
361
+ print(row)
362
+
363
+ #rows = list(csv_reader)
364
+
365
+ for row in csv_reader:
 
 
 
 
 
 
366
  if target_id in row:
367
  index_of_target = row.index(target_id)
368