Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import os
|
|
3 |
|
4 |
from multi_agent import run_multi_agent
|
5 |
|
6 |
-
LLM_WHITE = "gpt-
|
7 |
LLM_BLACK = "gpt-3.5-turbo-0613"
|
8 |
|
9 |
def invoke(openai_api_key, num_moves = 10):
|
@@ -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 = 3, minimum = 1, maximum =
|
22 |
outputs = [gr.Markdown(label = "Game", value=os.environ["OUTPUT"], line_breaks=True, sanitize_html=False)],
|
23 |
title = "Chess: AI vs. AI",
|
24 |
description = os.environ["DESCRIPTION"])
|
|
|
3 |
|
4 |
from multi_agent import run_multi_agent
|
5 |
|
6 |
+
LLM_WHITE = "gpt-4o"
|
7 |
LLM_BLACK = "gpt-3.5-turbo-0613"
|
8 |
|
9 |
def invoke(openai_api_key, num_moves = 10):
|
|
|
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 = 100)],
|
22 |
outputs = [gr.Markdown(label = "Game", value=os.environ["OUTPUT"], line_breaks=True, sanitize_html=False)],
|
23 |
title = "Chess: AI vs. AI",
|
24 |
description = os.environ["DESCRIPTION"])
|