-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathata_web_server.py
More file actions
executable file
·35 lines (27 loc) · 944 Bytes
/
Copy pathata_web_server.py
File metadata and controls
executable file
·35 lines (27 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env python3
"""
Agent Testing Agent - Web Server Interface
This is the main entry point for running the Agent Testing Agent web interface.
"""
import sys
import os
# Add src to Python path for imports
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))
# Import and run the web server
from src.ata.web_server import app, socketio
from src.utils.openai_utils import initialize_agent_settings
if __name__ == '__main__':
# Initialize OpenAI settings
initialize_agent_settings()
# Load configuration
import json
config_path = os.path.join(os.path.dirname(__file__), 'config', 'config.json')
with open(config_path, 'r') as f:
config = json.load(f)
server_config = config.get('server', {})
socketio.run(
app,
host=server_config.get('host', '0.0.0.0'),
port=server_config.get('port', 5000),
debug=server_config.get('debug', True)
)