merve HF staff commited on
Commit
48be82d
1 Parent(s): c3fb6a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -161,7 +161,13 @@ with gr.Blocks() as demo:
161
  open_api_text,
162
  [city, distinct, neighbourhood, street, address, tel, name_surname, no],
163
  )
164
-
 
 
 
 
 
 
165
  submit_button = gr.Button(value="Veriyi Birimlere Yolla")
166
  submit_button.click(save_deta_db, open_api_text)
167
  done_text = gr.Textbox(label="Done", value="Not Done", visible=False)
 
161
  open_api_text,
162
  [city, distinct, neighbourhood, street, address, tel, name_surname, no],
163
  )
164
+ ocr_button = gr.Button(value="Sadece OCR kullan")
165
+ ocr_button.click(
166
+ get_parsed_address,
167
+ inputs=img_area,
168
+ outputs=ocr_input,
169
+ api_name="get-ocr-output",
170
+ )
171
  submit_button = gr.Button(value="Veriyi Birimlere Yolla")
172
  submit_button.click(save_deta_db, open_api_text)
173
  done_text = gr.Textbox(label="Done", value="Not Done", visible=False)