Commit 2e27ebf5 authored by shreyansh's avatar shreyansh

heroku app added

parent dfc509fe
......@@ -7,6 +7,7 @@ from prediction import predict
import uvicorn
import json
import requests
import os
scopes = [
"https://www.googleapis.com/auth/userinfo.email",
......@@ -107,4 +108,5 @@ async def evaluate(request):
return templates.TemplateResponse('thanks.html', {'request': request, 'score':score, 'message':message, 'essay':essay})
if __name__ == '__main__':
uvicorn.run(app, host='0.0.0.0', port=8040)
\ No newline at end of file
port = int(os.environ.get('PORT', 5000))
uvicorn.run(app, host='0.0.0.0', port=port)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment