gunicorn
This commit is contained in:
parent
96d5e61c9b
commit
4f40537f92
2 changed files with 2 additions and 3 deletions
1
main.py
1
main.py
|
|
@ -43,4 +43,3 @@ if __name__ == '__main__':
|
|||
app.run(host='0.0.0.0', port=8000)
|
||||
|
||||
# start with: gunicorn -w 4 -b 0.0.0.0:8000 app:app
|
||||
# export FLASK_ENV=production
|
||||
4
test.py
4
test.py
|
|
@ -1,8 +1,8 @@
|
|||
import requests
|
||||
|
||||
def test_gateway(prompttext):
|
||||
# url = 'https://volucy-gateway-e3d2bzbxdeaaayhz.westeurope-01.azurewebsites.net:8000/gpt'
|
||||
url = 'http://localhost:8000/gpt'
|
||||
url = 'https://volucy-gateway-e3d2bzbxdeaaayhz.westeurope-01.azurewebsites.net:8000/gpt'
|
||||
# url = 'http://localhost:8000/gpt'
|
||||
payload = {
|
||||
'prompt': prompttext,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue