Jofthomas commited on
Commit
00a5292
·
verified ·
1 Parent(s): 2e8a2f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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, AccountConfiguration, ShowdownServerConfiguration
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 = ShowdownServerConfiguration(
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
  )