Karthikeyaandhoju commited on
Commit
8a4017a
1 Parent(s): 73d1f29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -48,7 +48,8 @@ async def transcribe_audio(transcription_request: TranscriptionRequest):
48
 
49
  return TranscriptionResponse(text=transcription)
50
 
51
- # Endpoint for testing server health
52
- @app.get("/ping")
53
- async def ping():
54
- return {"ping": "pong"}
 
 
48
 
49
  return TranscriptionResponse(text=transcription)
50
 
51
+ if __name__ == "__main__":
52
+ ngrok_tunnel = ngrok.connect(7860)
53
+ print('Public URL:', ngrok_tunnel.public_url+'/docs')
54
+ nest_asyncio.apply()
55
+ uvicorn.run(app, host="0.0.0.0", port=7860)