deepsync commited on
Commit
8859e29
·
verified ·
1 Parent(s): c60108e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -38,10 +38,10 @@ def render_line_details(line_id):
38
  response = requests.post(os.environ["CF_URL"], params={"url": line_detail["source_audio_url"]})
39
  signed_uri = response.text
40
  audio_response = requests.get(signed_uri)
41
- path = os.path.join("temp_audios", f"{uuid4()}.mp3")
42
- with open(path, "wb") as f:
43
- f.write(audio_response.content)
44
- return path, source_transcript, translation
45
 
46
  def dump_data_db(line_id, video_type, video_subject, video_topics, video_tone, gender, demography, total_time, source_language, target_language, comments, accent, source_transcript, translation):
47
  line_detail = line_details[line_id]
 
38
  response = requests.post(os.environ["CF_URL"], params={"url": line_detail["source_audio_url"]})
39
  signed_uri = response.text
40
  audio_response = requests.get(signed_uri)
41
+ # path = os.path.join("temp_audios", f"{uuid4()}.mp3")
42
+ # with open(path, "wb") as f:
43
+ # f.write(audio_response.content)
44
+ return audio_response, source_transcript, translation
45
 
46
  def dump_data_db(line_id, video_type, video_subject, video_topics, video_tone, gender, demography, total_time, source_language, target_language, comments, accent, source_transcript, translation):
47
  line_detail = line_details[line_id]