Spaces:
Running
Running
File size: 4,011 Bytes
477ae0a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
custom_css = """
:root {
--neon-pink: #ff6bff;
--cyber-blue: #00f7ff;
--acid-green: #7fff00;
--gradient-angle: 135deg;
}
.gradio-container {
background: linear-gradient(var(--gradient-angle),
#0f0f0f 0%,
#1a1a1a 50%,
#0f0f0f 100%) !important;
font-family: 'Comic Neue', cursive !important;
}
.dark .gradio-container {
background: linear-gradient(var(--gradient-angle),
#000000 0%,
#1a1a1a 100%) !important;
}
.chat-message {
padding: 15px 25px !important;
border-radius: 30px !important;
margin: 15px 0 !important;
border: none !important;
position: relative;
transition: all 0.3s ease !important;
max-width: 80% !important;
font-size: 1.1em !important;
}
.user-message {
background: linear-gradient(45deg, #ff0080, #ff6bff) !important;
color: white !important;
margin-left: auto !important;
box-shadow: 0 4px 15px rgba(255,107,255,0.3) !important;
}
.bot-message {
background: linear-gradient(45deg, #00b4d8, #00f7ff) !important;
color: black !important;
margin-right: auto !important;
box-shadow: 0 4px 15px rgba(0,247,255,0.3) !important;
}
.chat-message::after {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
border-radius: 30px;
z-index: -1;
background: linear-gradient(45deg,
var(--neon-pink),
var(--cyber-blue),
var(--acid-green));
animation: gradient-animation 3s ease infinite;
}
@keyframes gradient-animation {
0% { opacity: 0.3; }
50% { opacity: 0.7; }
100% { opacity: 0.3; }
}
.header-image {
width: 150px !important;
height: 150px !important;
object-fit: cover;
border-radius: 50% !important;
border: 3px solid var(--neon-pink) !important;
box-shadow: 0 0 20px var(--neon-pink) !important;
animation: float 4s ease-in-out infinite;
}
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
100% { transform: translateY(0px); }
}
button {
background: linear-gradient(45deg, #7fff00, #00f7ff) !important;
border: none !important;
border-radius: 15px !important;
color: black !important;
font-weight: bold !important;
text-transform: uppercase !important;
transition: all 0.3s ease !important;
}
button:hover {
transform: scale(1.05) !important;
box-shadow: 0 0 15px var(--acid-green) !important;
}
.gr-examples {
border: 2px solid var(--neon-pink) !important;
border-radius: 20px !important;
background: rgba(0,0,0,0.3) !important;
}
footer {
text-align: center !important;
color: #fff !important;
text-shadow: 0 0 10px var(--cyber-blue) !important;
}
"""
header = """
<div style="text-align: center; padding: 20px;">
<h1 style="
font-family: 'Bebas Neue', cursive;
font-size: 3.5em;
color: #7fff00;
text-shadow: 0 0 15px #7fff00;
margin: 0;
">
VISION.TALK ๐ฎ
</h1>
<img class="header-image"
src="https://cdn-icons-png.flaticon.com/512/7858/7858975.png"
alt="Cyber AI">
<p style="color: #00f7ff; margin: 10px 0; font-size: 1.2em;">
Upload. Chat. Vibing. Repeat. ๐
</p>
</div>
"""
footer = """
<div class="glitch-wrapper" style="text-align: center; margin-top: 30px;">
<p class="glitch" data-text="โ ๏ธ WARNING: AI MAY GENERATE RANDOM VIBES">โ ๏ธ WARNING: AI MAY GENERATE RANDOM VIBES</p>
<p style="color: #00f7ff;">๐ Your data stays chill โข ๐จ Made with ~vibes~</p>
</div>
"""
shortcuts = """
<div style="text-align: center; margin: 20px 0;">
<p style="color: #ff6bff;">๐ฅ QUICK ACTIONS:</p>
<button style="margin: 5px;" onclick="document.querySelector('textarea').value='Rate this pic 1-10'">๐พ Rate Pic</button>
<button style="margin: 5px;" onclick="document.querySelector('textarea').value='Make this pic go viral'">๐ Viral Content</button>
</div>
"""
|