Jofthomas commited on
Commit
2e8a2f8
·
verified ·
1 Parent(s): 5440fdd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -3,7 +3,6 @@ import gradio as gr
3
  import asyncio
4
  import threading
5
  import os
6
- from dotenv import load_dotenv
7
 
8
  # Import poke-env components
9
  from poke_env.player import Player, RandomPlayer, AccountConfiguration, ShowdownServerConfiguration
@@ -11,8 +10,6 @@ from poke_env.player import Player, RandomPlayer, AccountConfiguration, Showdown
11
  # Import your custom agent
12
  from agent import OpenAIAgent
13
 
14
- # Load environment variables (.env file should contain OPENAI_API_KEY)
15
- load_dotenv()
16
 
17
  # --- Global variables for players and thread ---
18
  random_player: Player | None = None
 
3
  import asyncio
4
  import threading
5
  import os
 
6
 
7
  # Import poke-env components
8
  from poke_env.player import Player, RandomPlayer, AccountConfiguration, ShowdownServerConfiguration
 
10
  # Import your custom agent
11
  from agent import OpenAIAgent
12
 
 
 
13
 
14
  # --- Global variables for players and thread ---
15
  random_player: Player | None = None