zxsipola123456 commited on
Commit
061ae22
·
verified ·
1 Parent(s): 1e74b15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -113,7 +113,7 @@ with app:
113
  official_btn_text = gr.Button("点击验证官方key", variant="primary", elem_classes="custom-button")
114
 
115
  with gr.Column():
116
- official_output_textbox = gr.Textbox(label="显示key状态及可访问的模型列表", lines=15, max_lines=15, elem_classes="custom-textbox" )
117
  official_btn_text.click(validate_offi_api_key, official_api_key, official_output_textbox)
118
  with gr.Row(variant='panel'):
119
  with gr.Column():
@@ -123,7 +123,7 @@ with app:
123
  api_key=gr.Textbox(type='password', label='api-key', placeholder='请在此填写您的API Key')
124
  message_btn = gr.Button("发送", variant="primary", elem_classes="custom-button")
125
  with gr.Column():
126
- output_textbox = gr.Textbox(label="显示问题答案", lines=5, max_lines=15, elem_classes="custom-textbox" )
127
  message_btn.click(generate_response,inputs=[question,model_name,endpoint,api_key],outputs=output_textbox)
128
  #添加页面底部
129
  gr.HTML('''
 
113
  official_btn_text = gr.Button("点击验证官方key", variant="primary", elem_classes="custom-button")
114
 
115
  with gr.Column():
116
+ official_output_textbox = gr.Textbox(label="显示key状态及可访问的模型列表", lines=5, max_lines=5, elem_classes="custom-textbox" )
117
  official_btn_text.click(validate_offi_api_key, official_api_key, official_output_textbox)
118
  with gr.Row(variant='panel'):
119
  with gr.Column():
 
123
  api_key=gr.Textbox(type='password', label='api-key', placeholder='请在此填写您的API Key')
124
  message_btn = gr.Button("发送", variant="primary", elem_classes="custom-button")
125
  with gr.Column():
126
+ output_textbox = gr.Textbox(label="显示问题答案", lines=15, max_lines=15, elem_classes="custom-textbox" )
127
  message_btn.click(generate_response,inputs=[question,model_name,endpoint,api_key],outputs=output_textbox)
128
  #添加页面底部
129
  gr.HTML('''