JJS0321 commited on
Commit
07e5dc5
Β·
1 Parent(s): 58a66e8

make app more beautiful

Browse files
Files changed (1) hide show
  1. app.py +15 -7
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
- with gr.HTML(elem_classes="header"):
88
- gr.HTML("""
89
- <h1>πŸ“„ Donut OCR</h1>
90
- <p>Industrial AI Engineering Week 8 Assignment</p>
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
- with gr.HTML(elem_classes="footer"):
106
- gr.HTML("<p>Powered by Naver Clova Donut β€’ Built with πŸ’œ by You</p>")
 
 
 
 
 
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(