Spaces:
Sleeping
Sleeping
fixed the stupid font
Browse files
app.py
CHANGED
|
@@ -61,8 +61,6 @@ def respond(message, chat_history):
|
|
| 61 |
|
| 62 |
#hopefully fixed CSS code
|
| 63 |
css = """
|
| 64 |
-
@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&display=swap');
|
| 65 |
-
|
| 66 |
.gradio-container { background-color: #EBBAB9 !important; }
|
| 67 |
#chatbot-box { background-color: #407076 !important; color: white !important; }
|
| 68 |
#gallery-box { background-color: #407076 !important; }
|
|
@@ -88,10 +86,11 @@ css = """
|
|
| 88 |
color: white !important;
|
| 89 |
}
|
| 90 |
|
| 91 |
-
/* Title font styling */
|
| 92 |
h1 {
|
| 93 |
-
font-family: 'Pinyon Script', cursive !important;
|
| 94 |
font-size: 2.5em !important;
|
|
|
|
| 95 |
}
|
| 96 |
|
| 97 |
/* Ensure input box is fully styled */
|
|
@@ -102,7 +101,18 @@ h1 {
|
|
| 102 |
}
|
| 103 |
"""
|
| 104 |
|
| 105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
gr.Markdown("Fashioneer - Your Fashion Pioneer")
|
| 107 |
gr.Markdown("Ask me what to wear and I'll suggest clothing with images from the database.")
|
| 108 |
|
|
|
|
| 61 |
|
| 62 |
#hopefully fixed CSS code
|
| 63 |
css = """
|
|
|
|
|
|
|
| 64 |
.gradio-container { background-color: #EBBAB9 !important; }
|
| 65 |
#chatbot-box { background-color: #407076 !important; color: white !important; }
|
| 66 |
#gallery-box { background-color: #407076 !important; }
|
|
|
|
| 86 |
color: white !important;
|
| 87 |
}
|
| 88 |
|
| 89 |
+
/* Title font styling with web-safe fallback */
|
| 90 |
h1 {
|
| 91 |
+
font-family: 'Pinyon Script', 'Brush Script MT', cursive !important;
|
| 92 |
font-size: 2.5em !important;
|
| 93 |
+
font-style: italic !important;
|
| 94 |
}
|
| 95 |
|
| 96 |
/* Ensure input box is fully styled */
|
|
|
|
| 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 |
|