Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,8 +72,8 @@ with gr.Blocks() as demo:
|
|
| 72 |
gr.Markdown("Bu aplikasyonda üzerinde adres olan bir görüntüyü sürükleyip bırakarak konumu afet koordinasyona raporlayabilirsiniz.")
|
| 73 |
with gr.Row():
|
| 74 |
img_area = gr.Image()
|
| 75 |
-
ocr_result = gr.Textbox(label="
|
| 76 |
-
open_api_text = gr.Textbox(label="
|
| 77 |
|
| 78 |
submit_button = gr.Button()
|
| 79 |
submit_button.click(get_text, img_area, ocr_result)
|
|
@@ -82,15 +82,15 @@ with gr.Blocks() as demo:
|
|
| 82 |
|
| 83 |
with gr.Column():
|
| 84 |
with gr.Row():
|
| 85 |
-
mahalle = gr.Textbox(label="
|
| 86 |
-
sokak = gr.Textbox(label="
|
| 87 |
with gr.Row():
|
| 88 |
-
apartman = gr.Textbox(label="
|
| 89 |
-
il = gr.Textbox(label="
|
| 90 |
tarif = gr.Textbox(label="Tarif")
|
| 91 |
|
| 92 |
-
json_out = gr.Textbox()
|
| 93 |
-
csv_out = gr.Textbox()
|
| 94 |
|
| 95 |
adres_submit = gr.Button()
|
| 96 |
adres_submit.click(get_json, [mahalle, il, sokak, apartman], json_out)
|
|
|
|
| 72 |
gr.Markdown("Bu aplikasyonda üzerinde adres olan bir görüntüyü sürükleyip bırakarak konumu afet koordinasyona raporlayabilirsiniz.")
|
| 73 |
with gr.Row():
|
| 74 |
img_area = gr.Image()
|
| 75 |
+
ocr_result = gr.Textbox(label="Okunan Metin")
|
| 76 |
+
open_api_text = gr.Textbox(label="Ayrılmış Çıktı")
|
| 77 |
|
| 78 |
submit_button = gr.Button()
|
| 79 |
submit_button.click(get_text, img_area, ocr_result)
|
|
|
|
| 82 |
|
| 83 |
with gr.Column():
|
| 84 |
with gr.Row():
|
| 85 |
+
mahalle = gr.Textbox(label="Mahalle")
|
| 86 |
+
sokak = gr.Textbox(label="Sokak")
|
| 87 |
with gr.Row():
|
| 88 |
+
apartman = gr.Textbox(label="Apartman")
|
| 89 |
+
il = gr.Textbox(label="İl")
|
| 90 |
tarif = gr.Textbox(label="Tarif")
|
| 91 |
|
| 92 |
+
json_out = gr.Textbox("Ayrılmış Adres")
|
| 93 |
+
csv_out = gr.Textbox("Adres Kaydetme")
|
| 94 |
|
| 95 |
adres_submit = gr.Button()
|
| 96 |
adres_submit.click(get_json, [mahalle, il, sokak, apartman], json_out)
|