Skip to content

Commit f11813f

Browse files
committed
Run app directly
1 parent d07c263 commit f11813f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/evaluate.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,10 @@ jobs:
189189
uv pip install -r requirements-dev.txt
190190
191191
- name: Run local server in background
192+
# RUNNER_TRACKING_ID="" && (nohup python3 -m quart --app main:app run --port 50505 > serverlogs.out 2> serverlogs.err &)
192193
run: |
193194
cd app/backend
194-
RUNNER_TRACKING_ID="" && (nohup python3 -m quart --app main:app run --port 50505 > serverlogs.out 2> serverlogs.err &)
195+
python3 -m quart --app main:app run --port 50505
195196
cd ../..
196197
197198
- name: Install evaluate dependencies

app/backend/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ async def setup_clients():
420420
OPENAI_HOST = os.getenv("OPENAI_HOST", "azure")
421421
OPENAI_CHATGPT_MODEL = os.environ["AZURE_OPENAI_CHATGPT_MODEL"]
422422
OPENAI_EMB_MODEL = os.getenv("AZURE_OPENAI_EMB_MODEL_NAME", "text-embedding-ada-002")
423-
OPENAI_EMB_DIMENSIONS = int(os.getenv("AZURE_OPENAI_EMB_DIMENSIONS", 1536))
423+
OPENAI_EMB_DIMENSIONS = int(os.getenv("AZURE_OPENAI_EMB_DIMENSIONS") or 1536)
424424
# Used with Azure OpenAI deployments
425425
AZURE_OPENAI_SERVICE = os.getenv("AZURE_OPENAI_SERVICE")
426426
AZURE_OPENAI_GPT4V_DEPLOYMENT = os.environ.get("AZURE_OPENAI_GPT4V_DEPLOYMENT")

0 commit comments

Comments
 (0)