Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -223,16 +223,16 @@ button.secondary { background-color: #1e293b !important; color: #94a3b8 !importa
|
|
| 223 |
|
| 224 |
with gr.Blocks(title="DEEP BLUE", css=css, theme=gr.themes.Base()) as demo:
|
| 225 |
gr.Markdown("# DEEP BLUE", elem_id="title")
|
| 226 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
with gr.Row():
|
| 228 |
with gr.Column(scale=2):
|
| 229 |
board = Chessboard(elem_id="board", label="Battle Zone", value=chess.STARTING_FEN, game_mode=True, interactive=True)
|
| 230 |
|
| 231 |
with gr.Column(scale=1):
|
| 232 |
-
# API KEY INPUT
|
| 233 |
-
api_key_input = gr.Textbox(label="🔑 OpenAI API Key (Optional if System Key set)", placeholder="sk-...", type="password")
|
| 234 |
-
|
| 235 |
-
level = gr.Dropdown(["Beginner", "Intermediate", "Advanced", "Grandmaster"], value="Beginner", label="OPPONENT DIFFICULTY", interactive=True)
|
| 236 |
btn_reset = gr.Button("INITIALIZE NEW SEQUENCE", variant="secondary")
|
| 237 |
|
| 238 |
gr.Markdown("### 📟 SYSTEM OUTPUT")
|
|
|
|
| 223 |
|
| 224 |
with gr.Blocks(title="DEEP BLUE", css=css, theme=gr.themes.Base()) as demo:
|
| 225 |
gr.Markdown("# DEEP BLUE", elem_id="title")
|
| 226 |
+
|
| 227 |
+
# API KEY INPUT
|
| 228 |
+
api_key_input = gr.Textbox(label="🔑 OpenAI API Key (Optional if System Key set)", placeholder="sk-...", type="password")
|
| 229 |
+
level = gr.Dropdown(["Beginner", "Intermediate", "Advanced", "Grandmaster"], value="Beginner", label="OPPONENT DIFFICULTY", interactive=True)
|
| 230 |
+
|
| 231 |
with gr.Row():
|
| 232 |
with gr.Column(scale=2):
|
| 233 |
board = Chessboard(elem_id="board", label="Battle Zone", value=chess.STARTING_FEN, game_mode=True, interactive=True)
|
| 234 |
|
| 235 |
with gr.Column(scale=1):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
btn_reset = gr.Button("INITIALIZE NEW SEQUENCE", variant="secondary")
|
| 237 |
|
| 238 |
gr.Markdown("### 📟 SYSTEM OUTPUT")
|