Update app.py
Browse files
app.py
CHANGED
@@ -16,12 +16,10 @@ def invoke(openai_api_key, num_moves = 25):
|
|
16 |
|
17 |
gr.close_all()
|
18 |
|
19 |
-
value = os.environ["OUTPUT_1"] #+ os.environ["OUTPUT_2"]
|
20 |
-
|
21 |
demo = gr.Interface(fn = invoke,
|
22 |
inputs = [gr.Textbox(label = "OpenAI API Key", type = "password", lines = 1),
|
23 |
gr.Number(label = "Number of Moves", value = 10, minimum = 1, maximum = 25)],
|
24 |
-
outputs = [gr.Markdown(label = "Game", value=
|
25 |
title = "Chess: AI vs. AI",
|
26 |
description = os.environ["DESCRIPTION"])
|
27 |
|
|
|
16 |
|
17 |
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 = "Chess: AI vs. AI",
|
24 |
description = os.environ["DESCRIPTION"])
|
25 |
|