Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Commit 
							
							·
						
						0e5938b
	
1
								Parent(s):
							
							fdd3b76
								
kaydet butonu eklendi
Browse files
    	
        app.py
    CHANGED
    
    | 
         @@ -94,23 +94,23 @@ with gr.Blocks() as demo: 
     | 
|
| 94 | 
         
             
                    img_area = gr.Image(label="Ekran Görüntüsü yükleyin 👇")
         
     | 
| 95 | 
         
             
                    ocr_result = gr.Textbox(label="Metin yükleyin 👇 ")
         
     | 
| 96 | 
         
             
                open_api_text = gr.Textbox(label="Tam Adres")
         
     | 
| 97 | 
         
            -
                 
     | 
| 98 | 
         
             
                with gr.Column():
         
     | 
| 99 | 
         
             
                    with gr.Row():
         
     | 
| 100 | 
         
            -
                        city = gr.Textbox(label="İl")
         
     | 
| 101 | 
         
            -
                        distinct = gr.Textbox(label="İlçe")
         
     | 
| 102 | 
         
             
                    with gr.Row():
         
     | 
| 103 | 
         
            -
                        neighbourhood = gr.Textbox(label="Mahalle")
         
     | 
| 104 | 
         
            -
                        street = gr.Textbox(label="Sokak/Cadde/Bulvar")
         
     | 
| 105 | 
         
             
                    with gr.Row():
         
     | 
| 106 | 
         
            -
                        tel = gr.Textbox(label="Telefon")
         
     | 
| 107 | 
         
             
                    with gr.Row():
         
     | 
| 108 | 
         
            -
                        name_surname = gr.Textbox(label="İsim Soyisim")
         
     | 
| 109 | 
         
            -
                        address = gr.Textbox(label="Adres")
         
     | 
| 110 | 
         
             
                    with gr.Row():
         
     | 
| 111 | 
         
            -
                        no = gr.Textbox(label="Kapı No")
         
     | 
| 112 | 
         | 
| 113 | 
         
            -
                 
     | 
| 114 | 
         
             
                    get_parsed_address,
         
     | 
| 115 | 
         
             
                    inputs=img_area,
         
     | 
| 116 | 
         
             
                    outputs=open_api_text,
         
     | 
| 
         @@ -126,7 +126,7 @@ with gr.Blocks() as demo: 
     | 
|
| 126 | 
         
             
                    open_api_text,
         
     | 
| 127 | 
         
             
                    [city, distinct, neighbourhood, street, address, tel, name_surname, no],
         
     | 
| 128 | 
         
             
                )
         
     | 
| 129 | 
         
            -
             
     | 
| 130 | 
         | 
| 131 | 
         
             
            if __name__ == "__main__":
         
     | 
| 132 | 
         
             
                demo.launch()
         
     | 
| 
         | 
|
| 94 | 
         
             
                    img_area = gr.Image(label="Ekran Görüntüsü yükleyin 👇")
         
     | 
| 95 | 
         
             
                    ocr_result = gr.Textbox(label="Metin yükleyin 👇 ")
         
     | 
| 96 | 
         
             
                open_api_text = gr.Textbox(label="Tam Adres")
         
     | 
| 97 | 
         
            +
                run_button = gr.Button(value="Yukle", label="Yükle")
         
     | 
| 98 | 
         
             
                with gr.Column():
         
     | 
| 99 | 
         
             
                    with gr.Row():
         
     | 
| 100 | 
         
            +
                        city = gr.Textbox(label="İl", interactive=True)
         
     | 
| 101 | 
         
            +
                        distinct = gr.Textbox(label="İlçe", interactive=True)
         
     | 
| 102 | 
         
             
                    with gr.Row():
         
     | 
| 103 | 
         
            +
                        neighbourhood = gr.Textbox(label="Mahalle", interactive=True)
         
     | 
| 104 | 
         
            +
                        street = gr.Textbox(label="Sokak/Cadde/Bulvar", interactive=True)
         
     | 
| 105 | 
         
             
                    with gr.Row():
         
     | 
| 106 | 
         
            +
                        tel = gr.Textbox(label="Telefon", interactive=True)
         
     | 
| 107 | 
         
             
                    with gr.Row():
         
     | 
| 108 | 
         
            +
                        name_surname = gr.Textbox(label="İsim Soyisim", interactive=True)
         
     | 
| 109 | 
         
            +
                        address = gr.Textbox(label="Adres", interactive=True)
         
     | 
| 110 | 
         
             
                    with gr.Row():
         
     | 
| 111 | 
         
            +
                        no = gr.Textbox(label="Kapı No", interactive=True)
         
     | 
| 112 | 
         | 
| 113 | 
         
            +
                run_button.click(
         
     | 
| 114 | 
         
             
                    get_parsed_address,
         
     | 
| 115 | 
         
             
                    inputs=img_area,
         
     | 
| 116 | 
         
             
                    outputs=open_api_text,
         
     | 
| 
         | 
|
| 126 | 
         
             
                    open_api_text,
         
     | 
| 127 | 
         
             
                    [city, distinct, neighbourhood, street, address, tel, name_surname, no],
         
     | 
| 128 | 
         
             
                )
         
     | 
| 129 | 
         
            +
                submit_button = gr.Button(value="Kaydet")
         
     | 
| 130 | 
         | 
| 131 | 
         
             
            if __name__ == "__main__":
         
     | 
| 132 | 
         
             
                demo.launch()
         
     |