Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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...")
|