Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -217,7 +217,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 217 |
gr.Markdown("### 1. 配置 & 上传")
|
| 218 |
key_input = gr.Textbox(label="API Key", type="password", placeholder="请输入您的 API Key")
|
| 219 |
# 👇 这里新增了 Base URL 的输入框
|
| 220 |
-
api_base_url_input = gr.Textbox(label="API Base URL (可选)", placeholder="例如: https://api.example.com/
|
| 221 |
key_btn = gr.Button("保存配置") # 稍微改了下名字更贴切
|
| 222 |
gr.Markdown("---")
|
| 223 |
pdf_input = gr.File(label="选择 PDF", file_types=[".pdf"])
|
|
|
|
| 217 |
gr.Markdown("### 1. 配置 & 上传")
|
| 218 |
key_input = gr.Textbox(label="API Key", type="password", placeholder="请输入您的 API Key")
|
| 219 |
# 👇 这里新增了 Base URL 的输入框
|
| 220 |
+
api_base_url_input = gr.Textbox(label="API Base URL (可选)", placeholder="例如: https://api.example.com/")
|
| 221 |
key_btn = gr.Button("保存配置") # 稍微改了下名字更贴切
|
| 222 |
gr.Markdown("---")
|
| 223 |
pdf_input = gr.File(label="选择 PDF", file_types=[".pdf"])
|