guangliang.yin commited on
Commit
39b8141
·
1 Parent(s): 569761e

变量改为系统变量

Browse files
Files changed (1) hide show
  1. app.py +2 -14
app.py CHANGED
@@ -167,26 +167,14 @@ if __name__ == "__main__":
167
  file = gr.File(label='请上传知识库文件\n可以处理 .txt, .md, .docx, .pdf 结尾的文件',
168
  file_types=['.txt', '.md', '.docx', '.pdf'])
169
  #openai_key_text = gr.Textbox(label="openai api key", type="password", placeholder="sk-******")
170
- puzhiai_key_text = gr.Textbox(label="puzhi api key", type="password", placeholder="******")
171
- with gr.Row():
172
- zilliz_uri_text = gr.Textbox(
173
- label="zilliz cloud uri",
174
- placeholder="https://<instance-id>.<cloud-region-id>.vectordb.zillizcloud.com:<port>",
175
- )
176
- user_text = gr.Textbox(label="username", placeholder="db_admin")
177
- password_text = gr.Textbox(
178
- label="password", type="password", placeholder="******"
179
- )
180
  loader_output = gr.Textbox(label="load status")
181
  loader_btn = gr.Button("Load Data")
182
  loader_btn.click(
183
  fn=web_loader,
184
  inputs=[
185
  file,
186
- puzhiai_key_text,
187
- zilliz_uri_text,
188
- user_text,
189
- password_text,
190
  ],
191
  outputs=loader_output,
192
  api_name="web_load",
 
167
  file = gr.File(label='请上传知识库文件\n可以处理 .txt, .md, .docx, .pdf 结尾的文件',
168
  file_types=['.txt', '.md', '.docx', '.pdf'])
169
  #openai_key_text = gr.Textbox(label="openai api key", type="password", placeholder="sk-******")
170
+ #puzhiai_key_text = gr.Textbox(label="puzhi api key", type="password", placeholder="******")
171
+
 
 
 
 
 
 
 
 
172
  loader_output = gr.Textbox(label="load status")
173
  loader_btn = gr.Button("Load Data")
174
  loader_btn.click(
175
  fn=web_loader,
176
  inputs=[
177
  file,
 
 
 
 
178
  ],
179
  outputs=loader_output,
180
  api_name="web_load",