Dagfinn1962 commited on
Commit
f4b5057
1 Parent(s): e433b78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -126,16 +126,19 @@ with gr.Blocks(
126
  This is a lightweight demo of gpt-3.5-turbo conversation completion. It was designed as a template for in-context learning applications to be built on top of.
127
  """
128
  )
129
- conversation = Chat()
 
130
  with gr.Row():
131
- with gr.Column():
132
  # to do: change to openaikey input for public release
133
  openai_key = gr.Textbox(
134
- type="text"
135
- value="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",
136
- info="",
137
- show_label=False,
138
-
 
 
139
  )
140
  chatbot = gr.Chatbot().style(height=400)
141
  with gr.Row():
 
126
  This is a lightweight demo of gpt-3.5-turbo conversation completion. It was designed as a template for in-context learning applications to be built on top of.
127
  """
128
  )
129
+
130
+ conversation = Chat()
131
  with gr.Row():
132
+ with gr.Column(scale=-2):
133
  # to do: change to openaikey input for public release
134
  openai_key = gr.Textbox(
135
+ label="OpenAI Key",
136
+ value="",
137
+ type="password",
138
+ placeholder="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",
139
+ info="You have to provide your own OpenAI API key.",
140
+ show_label=False,
141
+ ).style(container=False)
142
  )
143
  chatbot = gr.Chatbot().style(height=400)
144
  with gr.Row():