lalalalalalalalalala commited on
Commit
5de2505
·
verified ·
1 Parent(s): 3e4cea2

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +2 -2
run.py CHANGED
@@ -28,8 +28,8 @@ def fast_caption(sys_prompt, usr_prompt, temp, top_p, max_tokens, model, key, en
28
  progress_info = []
29
  with tempfile.TemporaryDirectory() as temp_dir:
30
  # temp_dir = '/opt/run'
31
- # csv_filename = os.path.join('/dev/shm', str(parquet_index).zfill(6) + '_gpt4o_caption.csv')
32
- csv_filename = '/dev/shm/caption.csv'
33
  with open(csv_filename, mode='w', newline='') as csv_file:
34
  fieldnames = ['md5', 'caption']
35
  writer = csv.DictWriter(csv_file, fieldnames=fieldnames)
 
28
  progress_info = []
29
  with tempfile.TemporaryDirectory() as temp_dir:
30
  # temp_dir = '/opt/run'
31
+ csv_filename = os.path.join('/dev/shm', str(parquet_index).zfill(6) + '_gpt4o_caption.csv')
32
+ # csv_filename = '/dev/shm/caption.csv'
33
  with open(csv_filename, mode='w', newline='') as csv_file:
34
  fieldnames = ['md5', 'caption']
35
  writer = csv.DictWriter(csv_file, fieldnames=fieldnames)