Commit fb7578ac authored by KARTAVYA PRAVIN KOTHARI's avatar KARTAVYA PRAVIN KOTHARI

resolving conflicts

parents 851fb1d8 2e27ebf5
......@@ -7,6 +7,7 @@ from prediction import predict
import uvicorn
import json
import requests
import os
scopes = [
"https://www.googleapis.com/auth/userinfo.email",
......@@ -112,4 +113,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