make app more beautiful
Browse files
app.py
CHANGED
|
@@ -84,11 +84,14 @@ body { background: #f0f2f5; font-family: 'Segoe UI', Tahoma, sans-serif; }
|
|
| 84 |
# βββ Blocks λ μ΄μμ ββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 85 |
with gr.Blocks(css=custom_css, title="Donut OCR App") as demo:
|
| 86 |
# ν€λ
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
|
|
|
|
|
|
|
|
|
| 92 |
|
| 93 |
# μ
λ ₯/μΆλ ₯ μμ
|
| 94 |
with gr.Row():
|
|
@@ -102,8 +105,13 @@ with gr.Blocks(css=custom_css, title="Donut OCR App") as demo:
|
|
| 102 |
run_btn.click(fn=ocr_donut, inputs=image_input, outputs=result_box)
|
| 103 |
|
| 104 |
# νΈν°
|
| 105 |
-
|
| 106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
|
| 108 |
# Spaces μ€ν
|
| 109 |
demo.launch(
|
|
|
|
| 84 |
# βββ Blocks λ μ΄μμ ββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 85 |
with gr.Blocks(css=custom_css, title="Donut OCR App") as demo:
|
| 86 |
# ν€λ
|
| 87 |
+
gr.HTML(
|
| 88 |
+
"""
|
| 89 |
+
<div class="header">
|
| 90 |
+
<h1>π Donut OCR</h1>
|
| 91 |
+
<p>Industrial AI Engineering Week 8 Assignment</p>
|
| 92 |
+
</div>
|
| 93 |
+
"""
|
| 94 |
+
)
|
| 95 |
|
| 96 |
# μ
λ ₯/μΆλ ₯ μμ
|
| 97 |
with gr.Row():
|
|
|
|
| 105 |
run_btn.click(fn=ocr_donut, inputs=image_input, outputs=result_box)
|
| 106 |
|
| 107 |
# νΈν°
|
| 108 |
+
gr.HTML(
|
| 109 |
+
"""
|
| 110 |
+
<div class="footer">
|
| 111 |
+
<p>Powered by Naver Clova Donut β’ Built with π by You</p>
|
| 112 |
+
</div>
|
| 113 |
+
"""
|
| 114 |
+
)
|
| 115 |
|
| 116 |
# Spaces μ€ν
|
| 117 |
demo.launch(
|