antoinette-f commited on
Commit
b1e5d7f
·
verified ·
1 Parent(s): 250ea05

okay NOW i've fixed the font

Browse files
Files changed (1) hide show
  1. app.py +6 -10
app.py CHANGED
@@ -101,19 +101,15 @@ h1 {
101
  }
102
  """
103
 
104
- # Add this function to load the Google Font
105
- def load_google_font():
106
- return """
 
107
  <link rel="preconnect" href="https://fonts.googleapis.com">
108
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
109
  <link href="https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap" rel="stylesheet">
110
- """
111
-
112
- # Add the Google Font link to the head
113
- font_html = load_google_font()
114
-
115
- with gr.Blocks(css=css, head=font_html) as demo:
116
- gr.Markdown("Fashioneer - Your Fashion Pioneer")
117
  gr.Markdown("Ask me what to wear and I'll suggest clothing with images from the database.")
118
 
119
  user_input = gr.Textbox(label="Your outfit requirements",
 
101
  }
102
  """
103
 
104
+
105
+
106
+ with gr.Blocks(css=css) as demo:
107
+ gr.HTML("""
108
  <link rel="preconnect" href="https://fonts.googleapis.com">
109
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
110
  <link href="https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap" rel="stylesheet">
111
+ <h1 style="font-family: 'Pinyon Script', cursive; font-size: 2.5em; margin-bottom: 0;">Fashioneer - Your Fashion Pioneer</h1>
112
+ """)
 
 
 
 
 
113
  gr.Markdown("Ask me what to wear and I'll suggest clothing with images from the database.")
114
 
115
  user_input = gr.Textbox(label="Your outfit requirements",