merve HF staff commited on
Commit
ef7f6f3
1 Parent(s): 660d034

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -138,9 +138,9 @@ with gr.Blocks() as demo:
138
  isim_soyisim = gr.Textbox(label="İsim Soyisim")
139
  adres = gr.Textbox(label="Adres")
140
 
141
- submit_button.click(get_text, img_area, ocr_result, api_name="upload-file")
142
 
143
- ocr_result.change(openai_response, ocr_result, open_api_text)
144
 
145
  open_api_text.change(text_dict_il, [open_api_text], il)
146
  open_api_text.change(text_dict_ilce, [open_api_text], ilce)
 
138
  isim_soyisim = gr.Textbox(label="İsim Soyisim")
139
  adres = gr.Textbox(label="Adres")
140
 
141
+ submit_button.click(get_text, img_area, ocr_result)
142
 
143
+ ocr_result.change(openai_response, ocr_result, open_api_text, api_name="upload-file")
144
 
145
  open_api_text.change(text_dict_il, [open_api_text], il)
146
  open_api_text.change(text_dict_ilce, [open_api_text], ilce)