Update app.py
Browse files
app.py
CHANGED
|
@@ -438,12 +438,12 @@ def create_gradio_app():
|
|
| 438 |
|
| 439 |
# Custom CSS for better styling
|
| 440 |
custom_css = """
|
| 441 |
-
h2{
|
| 442 |
-
margin:
|
| 443 |
}
|
| 444 |
.main-header {
|
| 445 |
text-align: center;
|
| 446 |
-
margin-bottom:
|
| 447 |
h1{
|
| 448 |
font-size: 2.5rem; /* Adjust as needed */
|
| 449 |
font-weight: bold;
|
|
@@ -459,9 +459,6 @@ def create_gradio_app():
|
|
| 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,7 +476,7 @@ def create_gradio_app():
|
|
| 479 |
|
| 480 |
# Model status display
|
| 481 |
model_status = "✅ Model loaded successfully" if model_loaded else "❌ Model not available"
|
| 482 |
-
gr.
|
| 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.")
|
|
|
|
| 438 |
|
| 439 |
# Custom CSS for better styling
|
| 440 |
custom_css = """
|
| 441 |
+
h2, h3{
|
| 442 |
+
margin: 2.5rem initial;
|
| 443 |
}
|
| 444 |
.main-header {
|
| 445 |
text-align: center;
|
| 446 |
+
margin-bottom: 5rem;
|
| 447 |
h1{
|
| 448 |
font-size: 2.5rem; /* Adjust as needed */
|
| 449 |
font-weight: bold;
|
|
|
|
| 459 |
font-size: 1.25rem;
|
| 460 |
}
|
| 461 |
}
|
|
|
|
|
|
|
|
|
|
| 462 |
"""
|
| 463 |
|
| 464 |
theme = gr.themes.Base(
|
|
|
|
| 476 |
|
| 477 |
# Model status display
|
| 478 |
model_status = "✅ Model loaded successfully" if model_loaded else "❌ Model not available"
|
| 479 |
+
gr.Markdown(f"**Model Status:** {model_status}")
|
| 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.")
|