Spaces:
Sleeping
Sleeping
valentin urena
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -62,15 +62,6 @@ def generate(
|
|
62 |
|
63 |
chat_interface = gr.ChatInterface(
|
64 |
fn=generate,
|
65 |
-
additional_inputs=[
|
66 |
-
gr.Slider(
|
67 |
-
label="Max new tokens",
|
68 |
-
minimum=1,
|
69 |
-
maximum=MAX_NEW_TOKENS,
|
70 |
-
step=1,
|
71 |
-
value=DEFAULT_MAX_NEW_TOKENS,
|
72 |
-
),
|
73 |
-
],
|
74 |
stop_btn=None,
|
75 |
examples=[
|
76 |
["Hi Gemma, what is a good first move in chess?"],
|
@@ -80,7 +71,6 @@ chat_interface = gr.ChatInterface(
|
|
80 |
type="messages",
|
81 |
)
|
82 |
|
83 |
-
|
84 |
|
85 |
with gr.Blocks(fill_height=True) as demo:
|
86 |
gr.Markdown(DESCRIPTION)
|
@@ -90,10 +80,11 @@ with gr.Blocks(fill_height=True) as demo:
|
|
90 |
# chess_png = gr.Image(play_match.display_board())
|
91 |
with gr.Row():
|
92 |
board_image = gr.HTML(play_match.display_board())
|
|
|
93 |
with gr.Column():
|
94 |
chat_interface.render()
|
95 |
|
96 |
-
game_logs = gr.Label(label="
|
97 |
|
98 |
move_input = gr.Textbox(label="Enter your move in algebraic notation (e.g., e4, Nf3, Bxc4)")
|
99 |
btn = gr.Button("Submit Move")
|
|
|
62 |
|
63 |
chat_interface = gr.ChatInterface(
|
64 |
fn=generate,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
stop_btn=None,
|
66 |
examples=[
|
67 |
["Hi Gemma, what is a good first move in chess?"],
|
|
|
71 |
type="messages",
|
72 |
)
|
73 |
|
|
|
74 |
|
75 |
with gr.Blocks(fill_height=True) as demo:
|
76 |
gr.Markdown(DESCRIPTION)
|
|
|
80 |
# chess_png = gr.Image(play_match.display_board())
|
81 |
with gr.Row():
|
82 |
board_image = gr.HTML(play_match.display_board())
|
83 |
+
game_logs = gr.Label(label="Game Logs")
|
84 |
with gr.Column():
|
85 |
chat_interface.render()
|
86 |
|
87 |
+
# game_logs = gr.Label(label="Game Logs")
|
88 |
|
89 |
move_input = gr.Textbox(label="Enter your move in algebraic notation (e.g., e4, Nf3, Bxc4)")
|
90 |
btn = gr.Button("Submit Move")
|