Add placeholders
Browse files
app.py
CHANGED
@@ -58,8 +58,15 @@ with gr.Blocks() as demo:
|
|
58 |
return image
|
59 |
|
60 |
chatbot = gr.Chatbot(type="messages")
|
61 |
-
msg = gr.Textbox(
|
62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
chess_board = gr.Image(display_board(chess.Board()))
|
64 |
|
65 |
clear = gr.Button("Clear")
|
|
|
58 |
return image
|
59 |
|
60 |
chatbot = gr.Chatbot(type="messages")
|
61 |
+
msg = gr.Textbox(
|
62 |
+
submit_btn=True, label="Chat", show_label=True, placeholder="Who are you?"
|
63 |
+
)
|
64 |
+
chess_moves = gr.Textbox(
|
65 |
+
submit_btn=True,
|
66 |
+
label="Chess",
|
67 |
+
show_label=True,
|
68 |
+
placeholder="1. e4 c5 2. Nf3 e6 3. d4 d5 4. exd5 exd5 5. Ne5 a6 6. Qh5 Nf6 7. Qxf7# 1-0",
|
69 |
+
)
|
70 |
chess_board = gr.Image(display_board(chess.Board()))
|
71 |
|
72 |
clear = gr.Button("Clear")
|