Update app.py
Browse files
app.py
CHANGED
|
@@ -184,7 +184,7 @@ def process_images(uploaded_file):
|
|
| 184 |
# Return HTML and the path to the CSV file
|
| 185 |
return html_output, temp_file.name
|
| 186 |
|
| 187 |
-
with gr.Blocks(
|
| 188 |
with gr.Row():
|
| 189 |
gr.Markdown("# Document AI Translation")
|
| 190 |
gr.Markdown("Upload a ZIP file containing JPEG/JPG images, and the system will extract and translate text from each image.")
|
|
@@ -198,4 +198,4 @@ with gr.Blocks(theme="gradio/seafoam") as interface:
|
|
| 198 |
file_input.change(process_images, inputs=file_input, outputs=[html_output, file_output])
|
| 199 |
|
| 200 |
if __name__ == "__main__":
|
| 201 |
-
interface.launch()
|
|
|
|
| 184 |
# Return HTML and the path to the CSV file
|
| 185 |
return html_output, temp_file.name
|
| 186 |
|
| 187 |
+
with gr.Blocks() as interface:
|
| 188 |
with gr.Row():
|
| 189 |
gr.Markdown("# Document AI Translation")
|
| 190 |
gr.Markdown("Upload a ZIP file containing JPEG/JPG images, and the system will extract and translate text from each image.")
|
|
|
|
| 198 |
file_input.change(process_images, inputs=file_input, outputs=[html_output, file_output])
|
| 199 |
|
| 200 |
if __name__ == "__main__":
|
| 201 |
+
interface.launch(theme="gradio/seafoam")
|