Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -117,10 +117,10 @@ Output:
|
|
| 117 |
|
| 118 |
|
| 119 |
with gr.Blocks() as demo:
|
| 120 |
-
gr.Markdown("""
|
| 121 |
-
gr.Markdown("""Bu uygulamada
|
| 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 |
|
|
@@ -138,7 +138,7 @@ with gr.Blocks() as demo:
|
|
| 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)
|
| 143 |
|
| 144 |
ocr_result.change(openai_response, ocr_result, open_api_text)
|
|
|
|
| 117 |
|
| 118 |
|
| 119 |
with gr.Blocks() as demo:
|
| 120 |
+
gr.Markdown(""" ## Enkaz Bildirme""")
|
| 121 |
+
gr.Markdown("""Bu uygulamada ekran görüntüsü sürükleyip bırakarak AFAD'a enkaz bildirimi yapabilirsiniz.""")
|
| 122 |
with gr.Row():
|
| 123 |
+
img_area = gr.Image(label="Ekran Görüntüsü")
|
| 124 |
ocr_result = gr.Textbox(label="Metin")
|
| 125 |
open_api_text = gr.Textbox(label="Tam Adres")
|
| 126 |
|
|
|
|
| 138 |
isim_soyisim = gr.Textbox(label="İsim Soyisim")
|
| 139 |
adres = gr.Textbox(label="Adres")
|
| 140 |
|
| 141 |
+
submit_button = gr.Button(label="Görüntüyü Yükle")
|
| 142 |
submit_button.click(get_text, img_area, ocr_result)
|
| 143 |
|
| 144 |
ocr_result.change(openai_response, ocr_result, open_api_text)
|