Update app.py
Browse files
app.py
CHANGED
@@ -117,14 +117,14 @@ with gr.Blocks() as app:
|
|
117 |
with gr.Row():
|
118 |
descripion, _0, _1 = start_new_game()
|
119 |
gr.Markdown(descripion)
|
120 |
-
|
121 |
user_prompt = gr.Textbox(label="Your Prompt", placeholder="Enter your prompt here...")
|
122 |
game_output = gr.Textbox(label="AI Response", interactive=False)
|
123 |
attempts = gr.Number(value=0, interactive=False, label="Attempts")
|
124 |
current_level = gr.State(value=0) # Track the current level
|
125 |
|
126 |
with gr.Row():
|
127 |
-
gr.
|
128 |
|
129 |
with gr.Row():
|
130 |
submit_button = gr.Button("Submit")
|
|
|
117 |
with gr.Row():
|
118 |
descripion, _0, _1 = start_new_game()
|
119 |
gr.Markdown(descripion)
|
120 |
+
|
121 |
user_prompt = gr.Textbox(label="Your Prompt", placeholder="Enter your prompt here...")
|
122 |
game_output = gr.Textbox(label="AI Response", interactive=False)
|
123 |
attempts = gr.Number(value=0, interactive=False, label="Attempts")
|
124 |
current_level = gr.State(value=0) # Track the current level
|
125 |
|
126 |
with gr.Row():
|
127 |
+
current_level = gr.Textbox(f"### {int(current_level.value)+1}", label="Gemini predicted item")
|
128 |
|
129 |
with gr.Row():
|
130 |
submit_button = gr.Button("Submit")
|