tree3po commited on
Commit
962d206
·
verified ·
1 Parent(s): 3ef7042

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -388,7 +388,7 @@ with gr.Blocks() as app:
388
  "Find the best deals on flippers for scuba diving",
389
  "Teach me to fly a helicopter",
390
  ]
391
- key_inp=gr.Textbox()
392
  add_in=[key_inp]
393
  gr.ChatInterface(
394
  fn=run,
@@ -398,8 +398,7 @@ with gr.Blocks() as app:
398
  additional_inputs=add_in,
399
  )
400
 
401
- text_input=gr.Textbox()
402
- html_game=gr.Textbox()
403
  url_params = gr.JSON({}, visible=True, label="")
404
  app.load(predict,[text_input,url_params],[text_input,key_inp], js=get_window_url_params)
405
 
 
388
  "Find the best deals on flippers for scuba diving",
389
  "Teach me to fly a helicopter",
390
  ]
391
+ key_inp=gr.Textbox(visible=True)
392
  add_in=[key_inp]
393
  gr.ChatInterface(
394
  fn=run,
 
398
  additional_inputs=add_in,
399
  )
400
 
401
+ text_input=gr.Textbox(visible=False)
 
402
  url_params = gr.JSON({}, visible=True, label="")
403
  app.load(predict,[text_input,url_params],[text_input,key_inp], js=get_window_url_params)
404