Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -90,14 +90,18 @@ YI_ENDPOINT = pn.widgets.TextInput(name='Yi Endpoint', placeholder="Enter your Y
|
|
90 |
# Add an observer to watch changes in yi_mode value (True/False)
|
91 |
YI_MODE.param.watch(check_yi_mode, 'value')
|
92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
openai_row = pn.Row(txt_model, pwd_openai_key, pwd_openai_url)
|
94 |
file_cfg = pn.widgets.FileInput(filename="OAI_CONFIG_LIST", sizing_mode="stretch_width")
|
95 |
template.main.append(
|
96 |
pn.Column(
|
97 |
-
openai_row
|
98 |
-
|
99 |
-
[pn.pane.Markdown("### Yi Endpoint: "), YI_ENDPOINT]
|
100 |
-
)
|
101 |
)
|
102 |
|
103 |
|
|
|
90 |
# Add an observer to watch changes in yi_mode value (True/False)
|
91 |
YI_MODE.param.watch(check_yi_mode, 'value')
|
92 |
|
93 |
+
pn.Column(
|
94 |
+
pn.pane.Markdown("### Local YI Mode: "),
|
95 |
+
YI_MODE,
|
96 |
+
pn.pane.Markdown("### Yi Endpoint: "),
|
97 |
+
YI_ENDPOINT
|
98 |
+
)
|
99 |
openai_row = pn.Row(txt_model, pwd_openai_key, pwd_openai_url)
|
100 |
file_cfg = pn.widgets.FileInput(filename="OAI_CONFIG_LIST", sizing_mode="stretch_width")
|
101 |
template.main.append(
|
102 |
pn.Column(
|
103 |
+
openai_row
|
104 |
+
)
|
|
|
|
|
105 |
)
|
106 |
|
107 |
|