merve HF staff commited on
Commit
10958d2
1 Parent(s): 4d96bef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -11
app.py CHANGED
@@ -117,25 +117,26 @@ Output:
117
 
118
 
119
  with gr.Blocks() as demo:
120
- gr.Markdown(""" # Image to Text - Adres""")
 
121
  with gr.Row():
122
  img_area = gr.Image()
123
- ocr_result = gr.Textbox(label="OCR")
124
- open_api_text = gr.Textbox(label="OPENAI")
125
 
126
  with gr.Column():
127
  with gr.Row():
128
- il = gr.Textbox(label="il")
129
- ilce = gr.Textbox(label="ilce")
130
  with gr.Row():
131
- mahalle = gr.Textbox(label="mahalle")
132
- sokak = gr.Textbox(label="sokak/cadde/bulvar")
133
  with gr.Row():
134
- no = gr.Textbox(label="no")
135
- tel = gr.Textbox(label="tel")
136
  with gr.Row():
137
- isim_soyisim = gr.Textbox(label="isim_soyisim")
138
- adres = gr.Textbox(label="adres")
139
 
140
  submit_button = gr.Button()
141
  submit_button.click(get_text, img_area, ocr_result)
 
117
 
118
 
119
  with gr.Blocks() as demo:
120
+ gr.Markdown("""# Enkaz Bildirme""")
121
+ gr.Markdown("""Bu uygulamada screenshot sürükleyip bırakarak AFAD'a enkaz bildirimi yapabilirsiniz.""")
122
  with gr.Row():
123
  img_area = gr.Image()
124
+ ocr_result = gr.Textbox(label="Metin")
125
+ open_api_text = gr.Textbox(label="Tam Adres")
126
 
127
  with gr.Column():
128
  with gr.Row():
129
+ il = gr.Textbox(label="İl")
130
+ ilce = gr.Textbox(label="İlçe")
131
  with gr.Row():
132
+ mahalle = gr.Textbox(label="Mahalle")
133
+ sokak = gr.Textbox(label="Sokak/Cadde/Bulvar")
134
  with gr.Row():
135
+ no = gr.Textbox(label="No")
136
+ tel = gr.Textbox(label="Telefon")
137
  with gr.Row():
138
+ isim_soyisim = gr.Textbox(label="İsim Soyisim")
139
+ adres = gr.Textbox(label="Adres")
140
 
141
  submit_button = gr.Button()
142
  submit_button.click(get_text, img_area, ocr_result)