Andrei Shadrikov commited on
Commit
4dff3e2
·
1 Parent(s): a26c36e
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -126,7 +126,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue=gr.themes.colors.red, seconda
126
  with gr.Row():
127
  with gr.Column():
128
  inp1 = PDF(label="Загрузить PDF")
129
- btn_sbm1 = gr.Button("Запустить")
130
  with gr.Column():
131
  out1 = gr.Textbox(label="Полученный текст")
132
  btn_sbm1.click(fn=extract_text, inputs=inp1, outputs=out1)
@@ -134,7 +134,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue=gr.themes.colors.red, seconda
134
  with gr.Row():
135
  with gr.Column():
136
  inp2 = PDF(label="Загрузить PDF")
137
- btn_sbm2 = gr.Button("Запустить")
138
  with gr.Column():
139
  out2 = gr.File(label="Скачать ZIP архив")
140
  btn_sbm2.click(fn=process_pdf, inputs=[inp2, out_files], outputs=[out2, out_files])
@@ -143,7 +143,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue=gr.themes.colors.red, seconda
143
  with gr.Column():
144
  inp3 = PDF(label="Загрузить PDF")
145
  inp4 = gr.Textbox(label="Что хотите найти?")
146
- btn_sbm3 = gr.Button("Запустить")
147
  with gr.Column():
148
  out3 = gr.Textbox(label="Возможный ответ")
149
  btn_sbm3.click(fn=interact_with_pdf, inputs=[inp3, inp4], outputs=out3)
 
126
  with gr.Row():
127
  with gr.Column():
128
  inp1 = PDF(label="Загрузить PDF")
129
+ btn_sbm1 = gr.Button("Запустить", variant="primary")
130
  with gr.Column():
131
  out1 = gr.Textbox(label="Полученный текст")
132
  btn_sbm1.click(fn=extract_text, inputs=inp1, outputs=out1)
 
134
  with gr.Row():
135
  with gr.Column():
136
  inp2 = PDF(label="Загрузить PDF")
137
+ btn_sbm2 = gr.Button("Запустить", variant="primary")
138
  with gr.Column():
139
  out2 = gr.File(label="Скачать ZIP архив")
140
  btn_sbm2.click(fn=process_pdf, inputs=[inp2, out_files], outputs=[out2, out_files])
 
143
  with gr.Column():
144
  inp3 = PDF(label="Загрузить PDF")
145
  inp4 = gr.Textbox(label="Что хотите найти?")
146
+ btn_sbm3 = gr.Button("Запустить", variant="primary")
147
  with gr.Column():
148
  out3 = gr.Textbox(label="Возможный ответ")
149
  btn_sbm3.click(fn=interact_with_pdf, inputs=[inp3, inp4], outputs=out3)