Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,8 +5,8 @@ import threading
|
|
| 5 |
import os
|
| 6 |
|
| 7 |
# Import poke-env components
|
| 8 |
-
from poke_env.player import Player, RandomPlayer
|
| 9 |
-
|
| 10 |
# Import your custom agent
|
| 11 |
from agent import OpenAIAgent
|
| 12 |
|
|
@@ -19,7 +19,7 @@ init_lock = threading.Lock() # To prevent race conditions during init
|
|
| 19 |
agents_initialized = False
|
| 20 |
|
| 21 |
# --- Configuration ---
|
| 22 |
-
custom_config =
|
| 23 |
"wss://jofthomas.com/showdown/websocket", # WebSocket URL
|
| 24 |
"https://jofthomas.com/showdown/action.php" # Authentication URL
|
| 25 |
)
|
|
|
|
| 5 |
import os
|
| 6 |
|
| 7 |
# Import poke-env components
|
| 8 |
+
from poke_env.player import Player, RandomPlayer
|
| 9 |
+
from poke_env import AccountConfiguration,ServerConfiguration
|
| 10 |
# Import your custom agent
|
| 11 |
from agent import OpenAIAgent
|
| 12 |
|
|
|
|
| 19 |
agents_initialized = False
|
| 20 |
|
| 21 |
# --- Configuration ---
|
| 22 |
+
custom_config = ServerConfiguration(
|
| 23 |
"wss://jofthomas.com/showdown/websocket", # WebSocket URL
|
| 24 |
"https://jofthomas.com/showdown/action.php" # Authentication URL
|
| 25 |
)
|