AlvinSiang commited on
Commit
5dc224a
·
verified ·
1 Parent(s): 1b09be7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -70,6 +70,13 @@ function createGradioAnimation() {
70
  """
71
 
72
  css = """
 
 
 
 
 
 
 
73
  #input-img img {
74
  width: 300px !important;
75
  height: 300px !important;
@@ -85,12 +92,15 @@ background = image.resize((3000, 700))
85
 
86
  with gr.Blocks() as demo:
87
  gr.HTML('''
 
 
88
  <style>
89
  @keyframes fadeIn{
90
  from { opacity: 0; transform: translateY(-10px); }
91
  to { opacity: 1; transform: translateY(0);}
92
  }
93
  .title {
 
94
  text-align: center;
95
  font-size: 36px;
96
  color: #2c3e50;
@@ -104,7 +114,7 @@ with gr.Blocks() as demo:
104
  ''')
105
 
106
  with gr.Row():
107
- gr.Image(value=background, height = 280, interactive = False)
108
  with gr.Row():
109
  gr.Markdown(
110
  '''
 
70
  """
71
 
72
  css = """
73
+ #banner-img img {
74
+ width: 100% !important;
75
+ height: auto !important;
76
+ max-height: 280px;
77
+ object-fit: contain;
78
+ }
79
+
80
  #input-img img {
81
  width: 300px !important;
82
  height: 300px !important;
 
92
 
93
  with gr.Blocks() as demo:
94
  gr.HTML('''
95
+ <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap" rel="stylesheet">
96
+
97
  <style>
98
  @keyframes fadeIn{
99
  from { opacity: 0; transform: translateY(-10px); }
100
  to { opacity: 1; transform: translateY(0);}
101
  }
102
  .title {
103
+ font-family: 'Poppins', sans-serif;
104
  text-align: center;
105
  font-size: 36px;
106
  color: #2c3e50;
 
114
  ''')
115
 
116
  with gr.Row():
117
+ gr.Image(value=background, interactive = False, elem_id = "banner-img")
118
  with gr.Row():
119
  gr.Markdown(
120
  '''