Upload Application Gradio principale
Browse files
app.py
CHANGED
|
@@ -1466,11 +1466,21 @@ def create_mcp_interface():
|
|
| 1466 |
}
|
| 1467 |
}
|
| 1468 |
|
| 1469 |
-
body, .gradio-container {
|
| 1470 |
max-width: 900px !important;
|
| 1471 |
margin: 0 auto !important;
|
| 1472 |
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
| 1473 |
-
min-height: 100vh;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1474 |
}
|
| 1475 |
|
| 1476 |
.weather-card {
|
|
@@ -1938,9 +1948,20 @@ def create_mcp_interface():
|
|
| 1938 |
|
| 1939 |
"""
|
| 1940 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1941 |
with gr.Blocks(
|
| 1942 |
title="🌦️ Météo France - Serveur MCP",
|
| 1943 |
-
theme=
|
| 1944 |
css=custom_css
|
| 1945 |
) as interface:
|
| 1946 |
|
|
|
|
| 1466 |
}
|
| 1467 |
}
|
| 1468 |
|
| 1469 |
+
html, body, .gradio-container, .app, .main, #root {
|
| 1470 |
max-width: 900px !important;
|
| 1471 |
margin: 0 auto !important;
|
| 1472 |
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
| 1473 |
+
min-height: 100vh !important;
|
| 1474 |
+
}
|
| 1475 |
+
|
| 1476 |
+
/* Forcer le fond sur HuggingFace Spaces */
|
| 1477 |
+
.gradio-app {
|
| 1478 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
| 1479 |
+
}
|
| 1480 |
+
|
| 1481 |
+
/* Override Hugging Face Spaces default styles */
|
| 1482 |
+
.app.svelte-182fdeq.svelte-182fdeq {
|
| 1483 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
| 1484 |
}
|
| 1485 |
|
| 1486 |
.weather-card {
|
|
|
|
| 1948 |
|
| 1949 |
"""
|
| 1950 |
|
| 1951 |
+
# Thème personnalisé pour HuggingFace Spaces
|
| 1952 |
+
theme = gr.themes.Soft(
|
| 1953 |
+
primary_hue="blue",
|
| 1954 |
+
secondary_hue="purple",
|
| 1955 |
+
neutral_hue="slate"
|
| 1956 |
+
).set(
|
| 1957 |
+
body_background_fill="linear-gradient(135deg, #667eea 0%, #764ba2 100%)",
|
| 1958 |
+
background_fill_primary="transparent",
|
| 1959 |
+
background_fill_secondary="transparent"
|
| 1960 |
+
)
|
| 1961 |
+
|
| 1962 |
with gr.Blocks(
|
| 1963 |
title="🌦️ Météo France - Serveur MCP",
|
| 1964 |
+
theme=theme,
|
| 1965 |
css=custom_css
|
| 1966 |
) as interface:
|
| 1967 |
|