Leiyan525 commited on
Commit
ddc6e23
·
1 Parent(s): ff0b26c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,6 +64,7 @@ def up_file(files):
64
  Doc_text_list = []
65
  for idx, file in enumerate(files):
66
  print(file.name)
 
67
  return gr.Textbox.update(visible = True), gr.Button.update(visible = True), gr.Markdown.update(value = '点击“建立索引”开始对话',)
68
 
69
 
@@ -71,7 +72,6 @@ with gr.Blocks() as demo:
71
  with gr.Row():
72
  with gr.Column():
73
  openai_apikey = gr.Textbox(label = 'openai api key', placeholder = '输入你的openai apikey')
74
- print(openai_apikey)
75
  file = gr.File(file_types = ['.jpg'], label = '点击上传图片,格式需为jpg', file_count = 'multiple')
76
  txt = gr.Textbox(label = '图片解析结果', visible = False)
77
  with gr.Row():
 
64
  Doc_text_list = []
65
  for idx, file in enumerate(files):
66
  print(file.name)
67
+ print(openai_apikey)
68
  return gr.Textbox.update(visible = True), gr.Button.update(visible = True), gr.Markdown.update(value = '点击“建立索引”开始对话',)
69
 
70
 
 
72
  with gr.Row():
73
  with gr.Column():
74
  openai_apikey = gr.Textbox(label = 'openai api key', placeholder = '输入你的openai apikey')
 
75
  file = gr.File(file_types = ['.jpg'], label = '点击上传图片,格式需为jpg', file_count = 'multiple')
76
  txt = gr.Textbox(label = '图片解析结果', visible = False)
77
  with gr.Row():