kaitwithkwk commited on
Commit
60765da
·
verified ·
1 Parent(s): 8859b87

Change autofocus

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ import gradio as gr
16
  def random_response(message, history):
17
  return random.choice(["Yes", "No"])
18
 
19
- demo = gr.ChatInterface(random_response, type="messages", autofocus=False)
20
 
21
  if __name__ == "__main__":
22
  demo.launch()
 
16
  def random_response(message, history):
17
  return random.choice(["Yes", "No"])
18
 
19
+ demo = gr.ChatInterface(random_response, type="messages", autofocus=True)
20
 
21
  if __name__ == "__main__":
22
  demo.launch()