Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -117,25 +117,26 @@ Output:
|
|
| 117 |
|
| 118 |
|
| 119 |
with gr.Blocks() as demo:
|
| 120 |
-
gr.Markdown("""
|
|
|
|
| 121 |
with gr.Row():
|
| 122 |
img_area = gr.Image()
|
| 123 |
-
ocr_result = gr.Textbox(label="
|
| 124 |
-
open_api_text = gr.Textbox(label="
|
| 125 |
|
| 126 |
with gr.Column():
|
| 127 |
with gr.Row():
|
| 128 |
-
il = gr.Textbox(label="
|
| 129 |
-
ilce = gr.Textbox(label="
|
| 130 |
with gr.Row():
|
| 131 |
-
mahalle = gr.Textbox(label="
|
| 132 |
-
sokak = gr.Textbox(label="
|
| 133 |
with gr.Row():
|
| 134 |
-
no = gr.Textbox(label="
|
| 135 |
-
tel = gr.Textbox(label="
|
| 136 |
with gr.Row():
|
| 137 |
-
isim_soyisim = gr.Textbox(label="
|
| 138 |
-
adres = gr.Textbox(label="
|
| 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)
|