pablocst commited on
Commit
9f1d6d1
·
1 Parent(s): 8f89416

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -104,13 +104,13 @@ Assistant: <utterance>
104
  In this app, you can explore the outputs of a gpt-3.5-turbo LLM.
105
  """
106
 
107
- with gr.Blocks(css = """#col_container {width: 1000px; margin-left: auto; margin-right: auto;} #chatbot {height: 520px; overflow: auto;}""") as demo:
108
  gr.HTML(title)
109
  gr.HTML('''<center><a href="https://huggingface.co/spaces/ysharma/ChatGPTwithAPI?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space and run securely with your OpenAI API Key</center>''')
110
  with gr.Column(elem_id = "col_container"):
111
  openai_api_key = gr.Textbox(type='password', label="Enter your OpenAI API key here")
112
  chatbot = gr.Chatbot(elem_id = "chatbot") #c
113
- inputs = gr.Textbox(placeholder = "Hi there!", label= "Type an input and press Enter") #t
114
  state = gr.State([]) #s
115
  b1 = gr.Button()
116
 
 
104
  In this app, you can explore the outputs of a gpt-3.5-turbo LLM.
105
  """
106
 
107
+ with gr.Blocks(css = """#col_container {width: 1000px; margin-left: auto; margin-right: auto;} #chatbot {height: 520px; overflow: auto;} #input_textbox textarea {height: 100px;}""") as demo:
108
  gr.HTML(title)
109
  gr.HTML('''<center><a href="https://huggingface.co/spaces/ysharma/ChatGPTwithAPI?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space and run securely with your OpenAI API Key</center>''')
110
  with gr.Column(elem_id = "col_container"):
111
  openai_api_key = gr.Textbox(type='password', label="Enter your OpenAI API key here")
112
  chatbot = gr.Chatbot(elem_id = "chatbot") #c
113
+ inputs = gr.Textbox(placeholder = "Hi there!", label= "Type an input and press Enter", elem_id="input_textbox") #t
114
  state = gr.State([]) #s
115
  b1 = gr.Button()
116