From 4f40537f92642f84aeb6717dd948866be605595e Mon Sep 17 00:00:00 2001
From: valueon
Date: Thu, 13 Mar 2025 00:43:37 +0100
Subject: [PATCH] gunicorn
---
main.py | 1 -
test.py | 4 ++--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/main.py b/main.py
index d4afbdc6..1ed98117 100644
--- a/main.py
+++ b/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
\ No newline at end of file
diff --git a/test.py b/test.py
index 221fc957..0ad5f5fb 100644
--- a/test.py
+++ b/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,
}