ysharma HF staff commited on
Commit
4b3106c
1 Parent(s): 54384c8
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -149,13 +149,15 @@ with gr.Blocks(css="#chatbot {overflow: auto; height:500px;}") as demo:
149
  gr.Markdown("<h3><center>Visual ChatGPT</center></h3>")
150
 
151
  with gr.Row():
152
- openai_api_key_textbox = gr.Textbox(
153
- placeholder="Paste your OpenAI API key here to start Visual ChatGPT(sk-...) and press Enter ↵️",
154
- show_label=False,
155
- lines=1,
156
- type="password",
157
- )
158
- enter_apikey = gr.Button("🔑Enter")
 
 
159
 
160
  chatbot = gr.Chatbot(elem_id="chatbot", label="Visual ChatGPT")
161
  state = gr.State([])
 
149
  gr.Markdown("<h3><center>Visual ChatGPT</center></h3>")
150
 
151
  with gr.Row():
152
+ with gr.Column(scale=0.8):
153
+ openai_api_key_textbox = gr.Textbox(
154
+ placeholder="Paste your OpenAI API key here to start Visual ChatGPT(sk-...) and press Enter ↵️",
155
+ show_label=False,
156
+ lines=1,
157
+ type="password",
158
+ )
159
+ with gr.Column(scale=0.2):
160
+ enter_apikey = gr.Button("🔑Enter")
161
 
162
  chatbot = gr.Chatbot(elem_id="chatbot", label="Visual ChatGPT")
163
  state = gr.State([])