Tonic commited on
Commit
a6a55f0
β€’
1 Parent(s): 3780874

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -84,8 +84,8 @@ file_cfg = pn.widgets.FileInput(filename="OAI_CONFIG_LIST", sizing_mode="stretch
84
  template.main.append(
85
  pn.Column(
86
  openai_row,
87
- [pn.pane.Markdown("### Local YI Mode: "),Yi_Mode],
88
- [pn.pane.Markdown("### Yi Endpoint: "), yi_endpoint]
89
  )
90
  )
91
 
@@ -97,7 +97,6 @@ def check_yi_mode(event):
97
  # Make openai_row invisible when local YI Mode is enabled and vice versa.
98
  openai_row.visible = not event.new
99
 
100
- # Add an observer to watch changes in yi_mode value (True/False)
101
  YI_MODE.param.watch(check_yi_mode, 'value')
102
 
103
  def get_config(tmpfilename="OAI_CONFIG_LIST"):
@@ -118,7 +117,7 @@ def get_config(tmpfilename="OAI_CONFIG_LIST"):
118
  {
119
  "model": "EasyYI",
120
  "api_key": "None",
121
- "base_url": "https://huggingface.co/spaces/teamtonic/easyyi"
122
  }
123
  ]
124
  if not config_list:
 
84
  template.main.append(
85
  pn.Column(
86
  openai_row,
87
+ [pn.pane.Markdown("### Local YI Mode: "),YI_MODE],
88
+ [pn.pane.Markdown("### Yi Endpoint: "), YI_ENDPOINT]
89
  )
90
  )
91
 
 
97
  # Make openai_row invisible when local YI Mode is enabled and vice versa.
98
  openai_row.visible = not event.new
99
 
 
100
  YI_MODE.param.watch(check_yi_mode, 'value')
101
 
102
  def get_config(tmpfilename="OAI_CONFIG_LIST"):
 
117
  {
118
  "model": "EasyYI",
119
  "api_key": "None",
120
+ "base_url": YI_ENDPOINT
121
  }
122
  ]
123
  if not config_list: