bstraehle commited on
Commit
a422127
·
verified ·
1 Parent(s): 7a5b552

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ from multi_agent import run_multi_agent
6
  LLM_WHITE = "gpt-4o"
7
  LLM_BLACK = "gpt-4o"
8
 
9
- def invoke(openai_api_key, num_moves = 10):
10
  if (openai_api_key == ""):
11
  raise gr.Error("OpenAI API Key is required.")
12
 
@@ -18,7 +18,7 @@ gr.close_all()
18
 
19
  demo = gr.Interface(fn = invoke,
20
  inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1),
21
- gr.Number(label = "Number of Moves", value = 10, minimum = 1, maximum = 25)],
22
  outputs = [gr.Markdown(label = "Game", value=os.environ["OUTPUT"], line_breaks=True, sanitize_html=False)],
23
  title = "Multi-Agent AI: Chess",
24
  description = os.environ["DESCRIPTION"])
 
6
  LLM_WHITE = "gpt-4o"
7
  LLM_BLACK = "gpt-4o"
8
 
9
+ def invoke(openai_api_key, num_moves = 3):
10
  if (openai_api_key == ""):
11
  raise gr.Error("OpenAI API Key is required.")
12
 
 
18
 
19
  demo = gr.Interface(fn = invoke,
20
  inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1),
21
+ gr.Number(label = "Number of Moves", value = 3, minimum = 1, maximum = 10)],
22
  outputs = [gr.Markdown(label = "Game", value=os.environ["OUTPUT"], line_breaks=True, sanitize_html=False)],
23
  title = "Multi-Agent AI: Chess",
24
  description = os.environ["DESCRIPTION"])