arcan3 commited on
Commit
dcbbb6c
·
1 Parent(s): e44d65b

added uuid for the animation file

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -226,8 +226,7 @@ def get_som_mp4_v2(csv_file_box, slice_size_slider, sample_rate, window_size_sli
226
  csv_writer.writerows(processed_data)
227
 
228
  name_animation_file = f'animation-{str(uuid.uuid4())}.mp4'
229
-
230
- os.system('curl -X POST -F "csv_file=@animation_table.csv" https://metric-space.ngrok.io/generate --output name_animation_file')
231
  # #with hhtp requests
232
  # url = "https://metric-space.ngrok.io/generate"
233
  # file = {'csv_file': open('animation_table.csv', 'rb')}
 
226
  csv_writer.writerows(processed_data)
227
 
228
  name_animation_file = f'animation-{str(uuid.uuid4())}.mp4'
229
+ os.system(f'curl -X POST -F "csv_file=@animation_table.csv" https://metric-space.ngrok.io/generate --output {name_animation_file}')
 
230
  # #with hhtp requests
231
  # url = "https://metric-space.ngrok.io/generate"
232
  # file = {'csv_file': open('animation_table.csv', 'rb')}