3v324v23 commited on
Commit
b7d617c
1 Parent(s): f26838b

Add application file

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -319,7 +319,7 @@ async def get_en_audio(audio_url):
319
 
320
 
321
 
322
- @app.get("/audio_segments/")
323
  def get_all_audio_segments():
324
  session=Session()
325
  segments = session.query(Audio_segment).all()
@@ -341,7 +341,7 @@ def get_all_audio_segments():
341
  })
342
  session.close()
343
  return {"segments":segment_dicts}
344
-
345
 
346
  def extract_15_seconds(audio_data, start_time, end_time):
347
  audio_segment = AudioSegment.from_file(BytesIO(audio_data), format='wav')
 
319
 
320
 
321
 
322
+ """ @app.get("/audio_segments/")
323
  def get_all_audio_segments():
324
  session=Session()
325
  segments = session.query(Audio_segment).all()
 
341
  })
342
  session.close()
343
  return {"segments":segment_dicts}
344
+ """
345
 
346
  def extract_15_seconds(audio_data, start_time, end_time):
347
  audio_segment = AudioSegment.from_file(BytesIO(audio_data), format='wav')