Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def predict_fn(img):
|
|
| 24 |
# HTML for the header
|
| 25 |
header_html = """
|
| 26 |
<div style="text-align: center; max-width: 650px; margin: 0 auto;">
|
| 27 |
-
<img src="imgclass.webp" alt="Header Image" style="max-width: 100%; height: auto; margin: 20px 0;">
|
| 28 |
<h1 style="color: #424C5B; font-size: 2.5em;">IT Betyár | Resnet Image Classifier</h1>
|
| 29 |
<p style="color: #FFFFFF; font-size: 1.2em;">
|
| 30 |
Üdvözöljük képosztályozónkban! Ez az eszköz egy ImageNeten betanított ResNet50 modellt használ
|
|
@@ -40,8 +40,9 @@ with gr.Blocks() as demo:
|
|
| 40 |
with gr.Column():
|
| 41 |
input_image = gr.Image(type='pil')
|
| 42 |
with gr.Row():
|
| 43 |
-
classify_btn = gr.Button("Mehet")
|
| 44 |
clear_btn = gr.Button("Reset")
|
|
|
|
|
|
|
| 45 |
|
| 46 |
with gr.Column():
|
| 47 |
output = gr.Label()
|
|
|
|
| 24 |
# HTML for the header
|
| 25 |
header_html = """
|
| 26 |
<div style="text-align: center; max-width: 650px; margin: 0 auto;">
|
| 27 |
+
<img src="https://huggingface.co/spaces/itbetyar/gradio-demo/resolve/main/imgclass.webp" alt="Header Image" style="max-width: 100%; height: auto; margin: 20px 0;">
|
| 28 |
<h1 style="color: #424C5B; font-size: 2.5em;">IT Betyár | Resnet Image Classifier</h1>
|
| 29 |
<p style="color: #FFFFFF; font-size: 1.2em;">
|
| 30 |
Üdvözöljük képosztályozónkban! Ez az eszköz egy ImageNeten betanított ResNet50 modellt használ
|
|
|
|
| 40 |
with gr.Column():
|
| 41 |
input_image = gr.Image(type='pil')
|
| 42 |
with gr.Row():
|
|
|
|
| 43 |
clear_btn = gr.Button("Reset")
|
| 44 |
+
classify_btn = gr.Button("Mehet")
|
| 45 |
+
|
| 46 |
|
| 47 |
with gr.Column():
|
| 48 |
output = gr.Label()
|