Update app.py
Browse files
app.py
CHANGED
|
@@ -52,16 +52,75 @@ with gr.Blocks() as demo:
|
|
| 52 |
inputs=[year, cylinders, displ, make, trany, fuel, vclass],
|
| 53 |
outputs=result
|
| 54 |
)
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
-
|
| 64 |
-
|
|
|
|
|
|
|
| 65 |
|
|
|
|
|
|
|
| 66 |
|
| 67 |
demo.launch()
|
|
|
|
| 52 |
inputs=[year, cylinders, displ, make, trany, fuel, vclass],
|
| 53 |
outputs=result
|
| 54 |
)
|
| 55 |
+
import gradio as gr
|
| 56 |
+
|
| 57 |
+
profile_card = """
|
| 58 |
+
<div class="profile-card">
|
| 59 |
+
<img src="https://huggingface.co/spaces/Aaron006/Aaron/resolve/main/Picsart_25-04-15_20-22-25-802.jpg" class="avatar" />
|
| 60 |
+
<h2 class="name">Aaron</h2>
|
| 61 |
+
<p class="title">Machine Learning Explorer</p>
|
| 62 |
+
<a href="https://www.linkedin.com/in/aaron-alex-mathew/" target="_blank" class="linkedin-btn">💼 Connect on LinkedIn</a>
|
| 63 |
+
</div>
|
| 64 |
+
"""
|
| 65 |
+
|
| 66 |
+
custom_css = """
|
| 67 |
+
body {
|
| 68 |
+
background: #0f0f1a;
|
| 69 |
+
font-family: sans-serif;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
.profile-card {
|
| 73 |
+
width: 300px;
|
| 74 |
+
margin: auto;
|
| 75 |
+
text-align: center;
|
| 76 |
+
padding: 20px;
|
| 77 |
+
border-radius: 20px;
|
| 78 |
+
background: linear-gradient(145deg, #2c2f4a, #1b1c30);
|
| 79 |
+
box-shadow: 0 0 30px rgba(0,255,255,0.2);
|
| 80 |
+
transition: transform 0.3s ease-in-out;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
.profile-card:hover {
|
| 84 |
+
transform: scale(1.05);
|
| 85 |
+
box-shadow: 0 0 40px rgba(0,255,255,0.4);
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
.avatar {
|
| 89 |
+
width: 120px;
|
| 90 |
+
height: 120px;
|
| 91 |
+
object-fit: cover;
|
| 92 |
+
border-radius: 50%;
|
| 93 |
+
border: 3px solid rgba(255,255,255,0.2);
|
| 94 |
+
margin-bottom: 10px;
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
.name {
|
| 98 |
+
font-size: 24px;
|
| 99 |
+
color: #ffffff;
|
| 100 |
+
margin: 6px 0;
|
| 101 |
+
}
|
| 102 |
|
| 103 |
+
.title {
|
| 104 |
+
font-size: 14px;
|
| 105 |
+
color: #ccc;
|
| 106 |
+
margin-bottom: 20px;
|
| 107 |
+
}
|
| 108 |
|
| 109 |
+
.linkedin-btn {
|
| 110 |
+
padding: 10px 16px;
|
| 111 |
+
background-color: #0077b5;
|
| 112 |
+
color: white;
|
| 113 |
+
border-radius: 8px;
|
| 114 |
+
text-decoration: none;
|
| 115 |
+
font-weight: bold;
|
| 116 |
+
}
|
| 117 |
|
| 118 |
+
.linkedin-btn:hover {
|
| 119 |
+
background-color: #005580;
|
| 120 |
+
}
|
| 121 |
+
"""
|
| 122 |
|
| 123 |
+
with gr.Blocks(css=custom_css) as demo:
|
| 124 |
+
gr.HTML(profile_card)
|
| 125 |
|
| 126 |
demo.launch()
|