SHAMIL SHAHBAZ AWAN
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,20 @@ def calculate_weight(earth_weight, planet):
|
|
| 31 |
|
| 32 |
# Gradio UI interface
|
| 33 |
def main():
|
| 34 |
-
with gr.Blocks(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
gr.Markdown("# Weight Calculator on Different Planets")
|
| 36 |
gr.Markdown("Enter your weight on Earth and choose a planet to find your weight on it.")
|
| 37 |
|
|
|
|
| 31 |
|
| 32 |
# Gradio UI interface
|
| 33 |
def main():
|
| 34 |
+
with gr.Blocks(css="""
|
| 35 |
+
.gradio-container {
|
| 36 |
+
background: url('https://path-to-your-image.jpg') no-repeat center center fixed;
|
| 37 |
+
background-size: cover;
|
| 38 |
+
min-height: 100vh;
|
| 39 |
+
}
|
| 40 |
+
.gradio-container .output-box {
|
| 41 |
+
animation: fadein 2s ease-in-out;
|
| 42 |
+
}
|
| 43 |
+
@keyframes fadein {
|
| 44 |
+
from { opacity: 0; }
|
| 45 |
+
to { opacity: 1; }
|
| 46 |
+
}
|
| 47 |
+
""") as demo:
|
| 48 |
gr.Markdown("# Weight Calculator on Different Planets")
|
| 49 |
gr.Markdown("Enter your weight on Earth and choose a planet to find your weight on it.")
|
| 50 |
|