zaafirriaz commited on
Commit
e7606b5
1 Parent(s): 66303b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -24,18 +24,23 @@ def answer_question(question):
24
 
25
  return answer, "answer.mp3"
26
 
27
- # HTML for the dinosaur image
28
  image_html = """
29
  <!DOCTYPE html>
30
  <html>
31
  <head>
32
  <style>
33
- body { margin: 0; }
34
- img { display: absolute; max-width: 100%; height: viewport heignt; }
 
 
 
 
 
 
35
  </style>
36
  </head>
37
  <body>
38
- <img src="https://i.pinimg.com/736x/b6/e8/61/b6e86149d3180b11018d9c3de1af92e6.jpg" alt="Dinosaur">
39
  </body>
40
  </html>
41
  """
 
24
 
25
  return answer, "answer.mp3"
26
 
27
+ # HTML for the dinosaur image as background
28
  image_html = """
29
  <!DOCTYPE html>
30
  <html>
31
  <head>
32
  <style>
33
+ body {
34
+ margin: 0;
35
+ height: 100vh;
36
+ background-image: url('https://i.pinimg.com/736x/b6/e8/61/b6e86149d3180b11018d9c3de1af92e6.jpg');
37
+ background-size: cover;
38
+ background-position: center;
39
+ background-repeat: no-repeat;
40
+ }
41
  </style>
42
  </head>
43
  <body>
 
44
  </body>
45
  </html>
46
  """