Skip to content

Commit 9344bad

Browse files
authored
Fix for Client/Server Launch (#124)
1 parent 26a9c6c commit 9344bad

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.github/workflows/pytest.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ on:
88
- synchronize
99
- reopened
1010
paths:
11-
- "src/server/**"
12-
- "src/client/**"
11+
- "src/**"
1312

1413
# Allows running this workflow manually
1514
workflow_dispatch:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ To run the application on bare-metal; download the [source](https://github.com/o
5656
1. Start Streamlit:
5757

5858
```bash
59-
streamlit run oai_client.py --server.port 8501
59+
streamlit run launch_client.py --server.port 8501
6060
```
6161

6262
1. Navigate to `http://localhost:8501`.

src/launch_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import common.logging_config as logging_config
1919

20-
logger = logging_config.logging.getLogger("client")
20+
logger = logging_config.logging.getLogger("launch_client")
2121

2222
# Import launch_server if it exists
2323
REMOTE_SERVER = False

src/launch_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# Endpoints
3636
from server.endpoints import register_endpoints
3737

38-
logger = logging_config.logging.getLogger("server")
38+
logger = logging_config.logging.getLogger("launch_server")
3939

4040

4141
##########################################
@@ -70,7 +70,7 @@ def start_subprocess(port: int) -> subprocess.Popen:
7070
process = subprocess.Popen(
7171
[
7272
"uvicorn",
73-
"server:create_app",
73+
"launch_server:create_app",
7474
"--factory",
7575
"--host",
7676
"0.0.0.0",

0 commit comments

Comments
 (0)