SHAMIL SHAHBAZ AWAN commited on
Commit
2b9f7d6
·
verified ·
1 Parent(s): 4b28155

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -1
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() as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
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