fix
Browse files
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
|
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 |
|