Chrunos commited on
Commit
c8574d4
·
verified ·
1 Parent(s): 8fe48f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -176,11 +176,11 @@ async def get_transcript(youtube_url: str):
176
  if not line.strip().isdigit()
177
  and '-->' not in line
178
  and line.strip())
179
- return jsonify({'transcript': text})
180
  else:
181
- return jsonify({'transcript': 'Subtitle file not found'})
182
  else:
183
- return jsonify({'transcript': 'No transcript available'})
184
 
185
  except Exception as e:
186
  raise HTTPException(status_code=500, detail=str(e))
 
176
  if not line.strip().isdigit()
177
  and '-->' not in line
178
  and line.strip())
179
+ return {'transcript': text}
180
  else:
181
+ return {'transcript': 'Subtitle file not found'}
182
  else:
183
+ return {'transcript': 'No transcript available'}
184
 
185
  except Exception as e:
186
  raise HTTPException(status_code=500, detail=str(e))