Update app.py
Browse files
app.py
CHANGED
|
@@ -459,6 +459,9 @@ def create_gradio_app():
|
|
| 459 |
font-size: 1.25rem;
|
| 460 |
}
|
| 461 |
}
|
|
|
|
|
|
|
|
|
|
| 462 |
"""
|
| 463 |
|
| 464 |
theme = gr.themes.Base(
|
|
@@ -476,7 +479,7 @@ def create_gradio_app():
|
|
| 476 |
|
| 477 |
# Model status display
|
| 478 |
model_status = "✅ Model loaded successfully" if model_loaded else "❌ Model not available"
|
| 479 |
-
gr.
|
| 480 |
|
| 481 |
if not model_loaded:
|
| 482 |
gr.Markdown("⚠️ **Warning**: Model file not found. Please ensure your trained model (.h5) is in the space's root directory.")
|
|
|
|
| 459 |
font-size: 1.25rem;
|
| 460 |
}
|
| 461 |
}
|
| 462 |
+
.status{
|
| 463 |
+
border: 1px solid rgba(255,255,255,0.1);
|
| 464 |
+
}
|
| 465 |
"""
|
| 466 |
|
| 467 |
theme = gr.themes.Base(
|
|
|
|
| 479 |
|
| 480 |
# Model status display
|
| 481 |
model_status = "✅ Model loaded successfully" if model_loaded else "❌ Model not available"
|
| 482 |
+
gr.HTML(f"<div class='status'>Model Status:** {model_status}</div>")
|
| 483 |
|
| 484 |
if not model_loaded:
|
| 485 |
gr.Markdown("⚠️ **Warning**: Model file not found. Please ensure your trained model (.h5) is in the space's root directory.")
|