ysharma HF staff commited on
Commit
9cc4dbf
·
1 Parent(s): 7d303ae

update layout

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -190,7 +190,7 @@ with gr.Blocks(css="""#col_container {width: 1000px; margin-left: auto; margin-r
190
  openai_api_key = gr.Textbox(type='password', label="Enter your OpenAI API key here for ChatGPT")
191
  inputs = gr.Textbox(placeholder="Hi there!", label="Type an input and press Enter ⤵️ " )
192
  with gr.Column(scale=1):
193
- b1 = gr.Button(elem_id = '🏃 Run', elem_id = 'run').style(full_width=True))
194
  b2 = gr.Button('🔄Clear up Chatbots!', elem_id = 'clear').style(full_width=True)
195
  state_chatgpt = gr.State([])
196
  state_together = gr.State([])
@@ -237,5 +237,6 @@ with gr.Blocks(css="""#col_container {width: 1000px; margin-left: auto; margin-r
237
  b2.click(reset_chat, [chatbot_chatgpt, state_chatgpt], [chatbot_chatgpt, state_chatgpt])
238
  b2.click(reset_chat, [chatbot_together, state_together], [chatbot_together, state_together])
239
 
 
240
  gr.Markdown(description)
241
  demo.queue(concurrency_count=16).launch(height= 2500, debug=True)
 
190
  openai_api_key = gr.Textbox(type='password', label="Enter your OpenAI API key here for ChatGPT")
191
  inputs = gr.Textbox(placeholder="Hi there!", label="Type an input and press Enter ⤵️ " )
192
  with gr.Column(scale=1):
193
+ b1 = gr.Button(elem_id = '🏃 Run', elem_id = 'run').style(full_width=True)
194
  b2 = gr.Button('🔄Clear up Chatbots!', elem_id = 'clear').style(full_width=True)
195
  state_chatgpt = gr.State([])
196
  state_together = gr.State([])
 
237
  b2.click(reset_chat, [chatbot_chatgpt, state_chatgpt], [chatbot_chatgpt, state_chatgpt])
238
  b2.click(reset_chat, [chatbot_together, state_together], [chatbot_together, state_together])
239
 
240
+ gr.HTML('''<center><a href="https://huggingface.co/spaces/ysharma/OpenChatKit_ChatGPT_Comparison?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space and run securely with your OpenAI API Key</center>''')
241
  gr.Markdown(description)
242
  demo.queue(concurrency_count=16).launch(height= 2500, debug=True)