Tonic commited on
Commit
9e62418
β€’
1 Parent(s): 3ecc51a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -83,6 +83,7 @@ pwd_aoai_url = PasswordInput(
83
  def check_yi_mode(event):
84
  # Make openai_row invisible when local YI Mode is enabled and vice versa.
85
  openai_row.visible = not event.new
 
86
 
87
  YI_MODE = pn.widgets.Checkbox(name='Local Y.I. Mode', value=True)
88
  YI_ENDPOINT = pn.widgets.TextInput(name='Yi Endpoint', placeholder="Enter your YI endpoint here...")
 
83
  def check_yi_mode(event):
84
  # Make openai_row invisible when local YI Mode is enabled and vice versa.
85
  openai_row.visible = not event.new
86
+ YI_ENDPOINT.visible = event.new
87
 
88
  YI_MODE = pn.widgets.Checkbox(name='Local Y.I. Mode', value=True)
89
  YI_ENDPOINT = pn.widgets.TextInput(name='Yi Endpoint', placeholder="Enter your YI endpoint here...")