Dagfinn1962 commited on
Commit
9735558
1 Parent(s): 93d7f26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -140,17 +140,17 @@ with gr.Blocks(theme='HaleyCH/HaleyCH_Theme') as demo:
140
  This is a lightweight gpt-3.5-turbo conversation
141
  completion.
142
  """
143
- )
144
  conversation = Chat()
145
  with gr.Row():
146
  with gr.Column():
 
147
  openai_key = gr.Textbox(
148
- label="OpenAI Key",
149
- api_key="os.environ.get('API_KEY')",
150
- value="os.environ.get('API_KEY')", # Use environment variable value as initial value
151
- placeholder="",
152
- type="text",
153
- info="",
154
  )
155
  chatbot = gr.Chatbot().style(height=400)
156
  with gr.Row():
 
140
  This is a lightweight gpt-3.5-turbo conversation
141
  completion.
142
  """
143
+ )
144
  conversation = Chat()
145
  with gr.Row():
146
  with gr.Column():
147
+ # to do: change to openaikey input for public release
148
  openai_key = gr.Textbox(
149
+ label="OpenAI Key",
150
+ value="",
151
+ type="password",
152
+ placeholder="copy under paste here! ",
153
+ info="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.",
 
154
  )
155
  chatbot = gr.Chatbot().style(height=400)
156
  with gr.Row():