Jofthomas commited on
Commit
2db62f7
·
verified ·
1 Parent(s): 6687f10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -79,9 +79,8 @@ def main():
79
  gr.Markdown("### Enter your Pokémon Showdown username to receive a battle invitation:")
80
  name_input = gr.Textbox(label="Your Pokémon Showdown Username", placeholder="Enter the username you're using on Showdown")
81
  battle_button = gr.Button("Send Battle Invitation")
82
- result_text = gr.Textbox(label="Result", interactive=False)
83
 
84
- battle_button.click(fn=invite_to_battle, inputs=name_input, outputs=result_text)
85
 
86
  gr.Markdown("### Pokémon Showdown Interface")
87
  gr.Markdown("Log in to Pokémon Showdown in the interface below, using the same username you entered above.")
 
79
  gr.Markdown("### Enter your Pokémon Showdown username to receive a battle invitation:")
80
  name_input = gr.Textbox(label="Your Pokémon Showdown Username", placeholder="Enter the username you're using on Showdown")
81
  battle_button = gr.Button("Send Battle Invitation")
 
82
 
83
+ battle_button.click(fn=invite_to_battle, inputs=name_input)
84
 
85
  gr.Markdown("### Pokémon Showdown Interface")
86
  gr.Markdown("Log in to Pokémon Showdown in the interface below, using the same username you entered above.")