simpx commited on
Commit
67ebcda
·
1 Parent(s): 2eb3af3
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ with gr.Blocks() as demo:
54
  with gr.Tab("Config"):
55
  with gr.Row():
56
  key_txt = gr.Textbox(label = "Openai Key", placeholder="Enter openai key 'sk-xxxx'%s" %
57
- (", Leave empty to use value from config file" if openai.api_key else ""))
58
  url_txt = gr.Textbox(label = "Openai API Base URL", placeholder="Enter openai base url 'https://xxx', Leave empty to use value '%s'" % openai.api_base)
59
  system_message = gr.Textbox(label = "System Message:", value = "You are an assistant who gives brief and concise answers.")
60
 
 
54
  with gr.Tab("Config"):
55
  with gr.Row():
56
  key_txt = gr.Textbox(label = "Openai Key", placeholder="Enter openai key 'sk-xxxx'%s" %
57
+ (", Leave empty to use value from config file" if api_key_from_config else ""))
58
  url_txt = gr.Textbox(label = "Openai API Base URL", placeholder="Enter openai base url 'https://xxx', Leave empty to use value '%s'" % openai.api_base)
59
  system_message = gr.Textbox(label = "System Message:", value = "You are an assistant who gives brief and concise answers.")
60