altryne commited on
Commit
7b98a4b
1 Parent(s): a8f0ac1

Removing vtt_file t0 make better jsons

Browse files
Files changed (1) hide show
  1. download.py +0 -3
download.py CHANGED
@@ -184,8 +184,6 @@ def caption_generator(social_media_url,uid, language="Autodetect", model_size=mo
184
  {
185
  "language_tag": transcribe_whisper_result["language"],
186
  "vtt_text": vtt_path.read_text(encoding="utf-8"),
187
- "vtt_file": anvil.BlobMedia(content_type="text/plain", content=vtt_path.read_bytes(),
188
- name=f"{uid}.{transcribe_whisper_result['language']}.vtt")
189
  },
190
  ]
191
 
@@ -200,7 +198,6 @@ def caption_generator(social_media_url,uid, language="Autodetect", model_size=mo
200
  {
201
  "language_tag": "en",
202
  "vtt_text": en_vtt_path.read_text(encoding="utf-8"),
203
- "vtt_file": anvil.BlobMedia(content_type="text/plain", content=en_vtt_path.read_bytes(), name=f"{uid}.en.vtt")
204
  }
205
  )
206
 
 
184
  {
185
  "language_tag": transcribe_whisper_result["language"],
186
  "vtt_text": vtt_path.read_text(encoding="utf-8"),
 
 
187
  },
188
  ]
189
 
 
198
  {
199
  "language_tag": "en",
200
  "vtt_text": en_vtt_path.read_text(encoding="utf-8"),
 
201
  }
202
  )
203