Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -122,10 +122,10 @@ with app:
|
|
122 |
official_btn_text.click(validate_offi_api_key, official_api_key, official_output_textbox)
|
123 |
with gr.Row(variant='panel'):
|
124 |
with gr.Column():
|
125 |
-
question=gr.Textbox(label="请输入你的问题: ")
|
126 |
model_name=gr.Dropdown(label="选择模型", choices=model_options, value="gpt-3.5-turbo")
|
127 |
-
endpoint=gr.Dropdown(label="
|
128 |
-
api_key=gr.Textbox(type='password', label='api-key', placeholder='请在此填写您的API Key')
|
129 |
with gr.Row(variant='panel'):
|
130 |
message_btn = gr.Button("发送", variant="primary", elem_classes="custom-button")
|
131 |
clear_btn = gr.Button("清除", variant="primary", elem_classes="custom-button")
|
|
|
122 |
official_btn_text.click(validate_offi_api_key, official_api_key, official_output_textbox)
|
123 |
with gr.Row(variant='panel'):
|
124 |
with gr.Column():
|
125 |
+
question=gr.Textbox(label="请输入你的问题: ",lines=2,max_lines=3)
|
126 |
model_name=gr.Dropdown(label="选择模型", choices=model_options, value="gpt-3.5-turbo")
|
127 |
+
endpoint=gr.Dropdown(label="选择官方或者接口地址", choices=base_url_options, value="https://lmzh.top/v1")
|
128 |
+
api_key=gr.Textbox(type='password', label='请输入中转或者官方api-key', placeholder='请在此填写您的API Key')
|
129 |
with gr.Row(variant='panel'):
|
130 |
message_btn = gr.Button("发送", variant="primary", elem_classes="custom-button")
|
131 |
clear_btn = gr.Button("清除", variant="primary", elem_classes="custom-button")
|