Update app.py
Browse files
app.py
CHANGED
|
@@ -58,47 +58,54 @@ Be friendly, professional, and supportive.
|
|
| 58 |
return f"Error: {str(e)}"
|
| 59 |
|
| 60 |
css = """
|
|
|
|
| 61 |
body {
|
| 62 |
-
background: #
|
| 63 |
min-height: 100vh;
|
| 64 |
}
|
| 65 |
.gradio-container {
|
| 66 |
-
max-width:
|
| 67 |
-
margin: auto !important;
|
| 68 |
font-family: 'Segoe UI', sans-serif !important;
|
|
|
|
| 69 |
}
|
| 70 |
-
.
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
margin-bottom:
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
| 77 |
}
|
| 78 |
-
.
|
| 79 |
-
|
| 80 |
-
font-size: 2.2em !important;
|
| 81 |
-
font-weight: 800 !important;
|
| 82 |
-
margin: 0 0 8px 0 !important;
|
| 83 |
-
letter-spacing: 1px;
|
| 84 |
}
|
| 85 |
-
.
|
| 86 |
-
|
| 87 |
-
font-size:
|
| 88 |
-
font-weight:
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
|
|
|
|
|
|
|
|
|
| 93 |
}
|
| 94 |
footer { display: none !important; }
|
| 95 |
"""
|
| 96 |
|
| 97 |
with gr.Blocks(css=css) as demo:
|
| 98 |
gr.HTML("""
|
| 99 |
-
<div class="
|
| 100 |
-
<
|
| 101 |
-
<
|
|
|
|
|
|
|
|
|
|
| 102 |
</div>
|
| 103 |
""")
|
| 104 |
|
|
|
|
| 58 |
return f"Error: {str(e)}"
|
| 59 |
|
| 60 |
css = """
|
| 61 |
+
* { box-sizing: border-box; }
|
| 62 |
body {
|
| 63 |
+
background: #fafafa;
|
| 64 |
min-height: 100vh;
|
| 65 |
}
|
| 66 |
.gradio-container {
|
| 67 |
+
max-width: 780px !important;
|
| 68 |
+
margin: 0 auto !important;
|
| 69 |
font-family: 'Segoe UI', sans-serif !important;
|
| 70 |
+
padding-top: 20px !important;
|
| 71 |
}
|
| 72 |
+
.header-box {
|
| 73 |
+
background: white;
|
| 74 |
+
border: 1px solid #e8e8e8;
|
| 75 |
+
border-radius: 12px;
|
| 76 |
+
padding: 28px 32px;
|
| 77 |
+
margin-bottom: 16px;
|
| 78 |
+
display: flex;
|
| 79 |
+
align-items: center;
|
| 80 |
+
gap: 16px;
|
| 81 |
+
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
| 82 |
}
|
| 83 |
+
.header-icon {
|
| 84 |
+
font-size: 40px;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
}
|
| 86 |
+
.header-text h1 {
|
| 87 |
+
margin: 0;
|
| 88 |
+
font-size: 1.8em;
|
| 89 |
+
font-weight: 700;
|
| 90 |
+
color: #1a1a2e;
|
| 91 |
+
letter-spacing: -0.5px;
|
| 92 |
+
}
|
| 93 |
+
.header-text p {
|
| 94 |
+
margin: 4px 0 0;
|
| 95 |
+
font-size: 0.9em;
|
| 96 |
+
color: #888;
|
| 97 |
}
|
| 98 |
footer { display: none !important; }
|
| 99 |
"""
|
| 100 |
|
| 101 |
with gr.Blocks(css=css) as demo:
|
| 102 |
gr.HTML("""
|
| 103 |
+
<div class="header-box">
|
| 104 |
+
<div class="header-icon">π</div>
|
| 105 |
+
<div class="header-text">
|
| 106 |
+
<h1>AI Study Buddy</h1>
|
| 107 |
+
<p>Created by Areeba Iqbal β’ Ask me anything</p>
|
| 108 |
+
</div>
|
| 109 |
</div>
|
| 110 |
""")
|
| 111 |
|