Spaces:
Sleeping
Sleeping
valentin urena
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -22,9 +22,9 @@ MAX_NEW_TOKENS = 2048
|
|
22 |
DEFAULT_MAX_NEW_TOKENS = 128
|
23 |
|
24 |
# model_id = "hf://google/gemma-2b-keras"
|
25 |
-
|
26 |
|
27 |
-
model_id = 'kaggle://valentinbaltazar/gemma-chess/keras/gemma_2b_en_chess'
|
28 |
|
29 |
|
30 |
model = keras_nlp.models.GemmaCausalLM.from_preset(model_id)
|
@@ -72,7 +72,7 @@ chat_interface = gr.ChatInterface(
|
|
72 |
)
|
73 |
|
74 |
|
75 |
-
with gr.Blocks(fill_height=True) as demo:
|
76 |
gr.Markdown(DESCRIPTION)
|
77 |
|
78 |
play_match = Game()
|
@@ -81,11 +81,10 @@ with gr.Blocks(fill_height=True) as demo:
|
|
81 |
with gr.Row():
|
82 |
with gr.Column():
|
83 |
board_image = gr.HTML(play_match.display_board())
|
84 |
-
game_logs = gr.Label(label="Game Logs")
|
85 |
with gr.Column():
|
86 |
chat_interface.render()
|
87 |
|
88 |
-
|
89 |
|
90 |
move_input = gr.Textbox(label="Enter your move in algebraic notation (e.g., e4, Nf3, Bxc4)")
|
91 |
btn = gr.Button("Submit Move")
|
|
|
22 |
DEFAULT_MAX_NEW_TOKENS = 128
|
23 |
|
24 |
# model_id = "hf://google/gemma-2b-keras"
|
25 |
+
model_id = "hf://google/gemma-2-2b-it"
|
26 |
|
27 |
+
# model_id = 'kaggle://valentinbaltazar/gemma-chess/keras/gemma_2b_en_chess'
|
28 |
|
29 |
|
30 |
model = keras_nlp.models.GemmaCausalLM.from_preset(model_id)
|
|
|
72 |
)
|
73 |
|
74 |
|
75 |
+
with gr.Blocks(css_paths="style.css",,fill_height=True) as demo:
|
76 |
gr.Markdown(DESCRIPTION)
|
77 |
|
78 |
play_match = Game()
|
|
|
81 |
with gr.Row():
|
82 |
with gr.Column():
|
83 |
board_image = gr.HTML(play_match.display_board())
|
|
|
84 |
with gr.Column():
|
85 |
chat_interface.render()
|
86 |
|
87 |
+
game_logs = gr.Label(label="Game Logs", elem_classes="game_logs_label")
|
88 |
|
89 |
move_input = gr.Textbox(label="Enter your move in algebraic notation (e.g., e4, Nf3, Bxc4)")
|
90 |
btn = gr.Button("Submit Move")
|