This commit is contained in:
valueon 2025-03-13 00:43:37 +01:00
parent 96d5e61c9b
commit 4f40537f92
2 changed files with 2 additions and 3 deletions

View file

@ -43,4 +43,3 @@ if __name__ == '__main__':
app.run(host='0.0.0.0', port=8000) app.run(host='0.0.0.0', port=8000)
# start with: gunicorn -w 4 -b 0.0.0.0:8000 app:app # start with: gunicorn -w 4 -b 0.0.0.0:8000 app:app
# export FLASK_ENV=production

View file

@ -1,8 +1,8 @@
import requests import requests
def test_gateway(prompttext): def test_gateway(prompttext):
# url = 'https://volucy-gateway-e3d2bzbxdeaaayhz.westeurope-01.azurewebsites.net:8000/gpt' url = 'https://volucy-gateway-e3d2bzbxdeaaayhz.westeurope-01.azurewebsites.net:8000/gpt'
url = 'http://localhost:8000/gpt' # url = 'http://localhost:8000/gpt'
payload = { payload = {
'prompt': prompttext, 'prompt': prompttext,
} }