Spaces:
Running
Running
- Initial Deployment
Browse files- README.md +7 -5
- index.html +644 -19
- prompts.txt +0 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: gradio-redesign
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: red
|
5 |
+
colorTo: green
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,644 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Gradio - Build & Share ML Apps</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
11 |
+
|
12 |
+
body {
|
13 |
+
font-family: 'Inter', sans-serif;
|
14 |
+
}
|
15 |
+
|
16 |
+
.gradient-text {
|
17 |
+
background: linear-gradient(90deg, #4F46E5 0%, #10B981 100%);
|
18 |
+
-webkit-background-clip: text;
|
19 |
+
background-clip: text;
|
20 |
+
-webkit-text-fill-color: transparent;
|
21 |
+
}
|
22 |
+
|
23 |
+
.gradient-bg {
|
24 |
+
background: linear-gradient(135deg, #4F46E5 0%, #10B981 100%);
|
25 |
+
}
|
26 |
+
|
27 |
+
.card-hover:hover {
|
28 |
+
transform: translateY(-4px);
|
29 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
30 |
+
}
|
31 |
+
|
32 |
+
.code-block {
|
33 |
+
background: #1E293B;
|
34 |
+
border-radius: 0.5rem;
|
35 |
+
}
|
36 |
+
|
37 |
+
.animate-pulse-slow {
|
38 |
+
animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
39 |
+
}
|
40 |
+
|
41 |
+
@keyframes pulse {
|
42 |
+
0%, 100% {
|
43 |
+
opacity: 1;
|
44 |
+
}
|
45 |
+
50% {
|
46 |
+
opacity: 0.7;
|
47 |
+
}
|
48 |
+
}
|
49 |
+
|
50 |
+
.nav-link::after {
|
51 |
+
content: '';
|
52 |
+
display: block;
|
53 |
+
width: 0;
|
54 |
+
height: 2px;
|
55 |
+
background: #4F46E5;
|
56 |
+
transition: width .3s;
|
57 |
+
}
|
58 |
+
|
59 |
+
.nav-link:hover::after {
|
60 |
+
width: 100%;
|
61 |
+
}
|
62 |
+
</style>
|
63 |
+
</head>
|
64 |
+
<body class="bg-gray-50 text-gray-800">
|
65 |
+
<!-- Alert Banner -->
|
66 |
+
<div class="bg-indigo-600 text-white text-center py-2 px-4">
|
67 |
+
<span class="font-medium">🚀 Gradio Agents & MCP Hackathon · Virtual, June 2-8 · $10k+ in prizes</span>
|
68 |
+
<a href="https://huggingface.co/Agents-MCP-Hackathon" class="ml-2 inline-block bg-white text-indigo-600 px-3 py-1 rounded-md font-medium hover:bg-indigo-50 transition-colors">Register Now →</a>
|
69 |
+
</div>
|
70 |
+
|
71 |
+
<!-- Navigation -->
|
72 |
+
<nav class="bg-white shadow-sm sticky top-0 z-50">
|
73 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
74 |
+
<div class="flex justify-between h-16">
|
75 |
+
<div class="flex items-center">
|
76 |
+
<div class="flex-shrink-0 flex items-center">
|
77 |
+
<img src="https://www.gradio.app/_app/immutable/assets/gradio.CHB5adID.svg" alt="Gradio logo" class="h-8">
|
78 |
+
</div>
|
79 |
+
<div class="hidden sm:ml-6 sm:flex sm:space-x-8">
|
80 |
+
<a href="https://www.gradio.app/guides/quickstart" class="nav-link text-gray-700 hover:text-gray-900 px-3 py-2 text-sm font-medium">⚡ Quickstart</a>
|
81 |
+
<a href="https://www.gradio.app/docs" class="nav-link text-gray-700 hover:text-gray-900 px-3 py-2 text-sm font-medium">✍️ Docs</a>
|
82 |
+
<a href="https://www.gradio.app/playground" class="nav-link text-gray-700 hover:text-gray-900 px-3 py-2 text-sm font-medium">🎢 Playground</a>
|
83 |
+
<a href="https://www.gradio.app/custom-components/gallery" class="nav-link text-gray-700 hover:text-gray-900 px-3 py-2 text-sm font-medium">🖼️ Custom Components</a>
|
84 |
+
<div class="relative group">
|
85 |
+
<button class="nav-link text-gray-700 hover:text-gray-900 px-3 py-2 text-sm font-medium flex items-center">
|
86 |
+
🖐 Community
|
87 |
+
<svg class="ml-1 h-4 w-4" fill="currentColor" viewBox="0 0 20 20">
|
88 |
+
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path>
|
89 |
+
</svg>
|
90 |
+
</button>
|
91 |
+
<div class="absolute left-0 mt-2 w-48 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-10">
|
92 |
+
<div class="py-1">
|
93 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Forums</a>
|
94 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Discord</a>
|
95 |
+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Events</a>
|
96 |
+
</div>
|
97 |
+
</div>
|
98 |
+
</div>
|
99 |
+
</div>
|
100 |
+
</div>
|
101 |
+
<div class="hidden sm:ml-6 sm:flex sm:items-center">
|
102 |
+
<div class="relative mx-4">
|
103 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
104 |
+
<svg class="h-5 w-5 text-gray-400" fill="currentColor" viewBox="0 0 20 20">
|
105 |
+
<path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd"></path>
|
106 |
+
</svg>
|
107 |
+
</div>
|
108 |
+
<input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" placeholder="Search (⌘K)">
|
109 |
+
</div>
|
110 |
+
<button class="bg-indigo-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors">
|
111 |
+
Get Started
|
112 |
+
</button>
|
113 |
+
</div>
|
114 |
+
<div class="-mr-2 flex items-center sm:hidden">
|
115 |
+
<button type="button" id="mobile-menu-button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500">
|
116 |
+
<span class="sr-only">Open main menu</span>
|
117 |
+
<svg class="block h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
118 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
|
119 |
+
</svg>
|
120 |
+
</button>
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
</div>
|
124 |
+
|
125 |
+
<!-- Mobile menu -->
|
126 |
+
<div id="mobile-menu" class="hidden sm:hidden">
|
127 |
+
<div class="pt-2 pb-3 space-y-1">
|
128 |
+
<a href="https://www.gradio.app/guides/quickstart" class="block px-4 py-2 text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-50">⚡ Quickstart</a>
|
129 |
+
<a href="https://www.gradio.app/docs" class="block px-4 py-2 text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-50">✍️ Docs</a>
|
130 |
+
<a href="https://www.gradio.app/playground" class="block px-4 py-2 text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-50">🎢 Playground</a>
|
131 |
+
<a href="https://www.gradio.app/custom-components/gallery" class="block px-4 py-2 text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-50">🖼️ Custom Components</a>
|
132 |
+
<a href="#" class="block px-4 py-2 text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-50">🖐 Community</a>
|
133 |
+
</div>
|
134 |
+
<div class="pt-4 pb-3 border-t border-gray-200">
|
135 |
+
<div class="px-4 mb-4">
|
136 |
+
<input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" placeholder="Search">
|
137 |
+
</div>
|
138 |
+
<div class="px-4">
|
139 |
+
<button class="w-full bg-indigo-600 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-colors">
|
140 |
+
Get Started
|
141 |
+
</button>
|
142 |
+
</div>
|
143 |
+
</div>
|
144 |
+
</div>
|
145 |
+
</nav>
|
146 |
+
|
147 |
+
<!-- Hero Section -->
|
148 |
+
<div class="relative overflow-hidden">
|
149 |
+
<div class="max-w-7xl mx-auto">
|
150 |
+
<div class="relative z-10 pb-8 bg-white sm:pb-16 md:pb-20 lg:max-w-2xl lg:w-full lg:pb-28 xl:pb-32">
|
151 |
+
<svg class="hidden lg:block absolute right-0 inset-y-0 h-full w-48 text-white transform translate-x-1/2" fill="currentColor" viewBox="0 0 100 100" preserveAspectRatio="none" aria-hidden="true">
|
152 |
+
<polygon points="50,0 100,0 50,100 0,100"></polygon>
|
153 |
+
</svg>
|
154 |
+
|
155 |
+
<main class="mt-10 mx-auto max-w-7xl px-4 sm:mt-12 sm:px-6 md:mt-16 lg:mt-20 lg:px-8 xl:mt-28">
|
156 |
+
<div class="sm:text-center lg:text-left">
|
157 |
+
<h1 class="text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:text-6xl">
|
158 |
+
<span class="block">Build & share</span>
|
159 |
+
<span class="block gradient-text">delightful machine learning apps</span>
|
160 |
+
</h1>
|
161 |
+
<p class="mt-3 text-base text-gray-500 sm:mt-5 sm:text-lg sm:max-w-xl sm:mx-auto md:mt-5 md:text-xl lg:mx-0">
|
162 |
+
Gradio is the fastest way to demo your machine learning model with a friendly web interface so that anyone can use it, anywhere!
|
163 |
+
</p>
|
164 |
+
<div class="mt-5 sm:mt-8 sm:flex sm:justify-center lg:justify-start">
|
165 |
+
<div class="rounded-md shadow">
|
166 |
+
<a href="https://www.gradio.app/guides/quickstart" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 md:py-4 md:text-lg md:px-10 transition-colors">
|
167 |
+
Get Started
|
168 |
+
</a>
|
169 |
+
</div>
|
170 |
+
<div class="mt-3 sm:mt-0 sm:ml-3">
|
171 |
+
<a href="https://github.com/gradio-app/gradio" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-indigo-700 bg-indigo-100 hover:bg-indigo-200 md:py-4 md:text-lg md:px-10 transition-colors">
|
172 |
+
<i class="fab fa-github mr-2"></i> Star <span class="ml-1 bg-white px-2 py-1 rounded-md text-sm">38,431</span>
|
173 |
+
</a>
|
174 |
+
</div>
|
175 |
+
</div>
|
176 |
+
</div>
|
177 |
+
</main>
|
178 |
+
</div>
|
179 |
+
</div>
|
180 |
+
<div class="lg:absolute lg:inset-y-0 lg:right-0 lg:w-1/2">
|
181 |
+
<img class="h-56 w-full object-cover sm:h-72 md:h-96 lg:w-full lg:h-full" src="https://www.gradio.app/_app/immutable/assets/header-image.DJQS6l6U.jpg" alt="Gradio banner">
|
182 |
+
</div>
|
183 |
+
</div>
|
184 |
+
|
185 |
+
<!-- Interactive Demo Section -->
|
186 |
+
<section class="py-12 bg-gray-50">
|
187 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
188 |
+
<div class="lg:text-center">
|
189 |
+
<h2 class="text-base text-indigo-600 font-semibold tracking-wide uppercase">Hello World</h2>
|
190 |
+
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl">
|
191 |
+
See Gradio in action
|
192 |
+
</p>
|
193 |
+
</div>
|
194 |
+
|
195 |
+
<div class="mt-10">
|
196 |
+
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
|
197 |
+
<!-- Code Block -->
|
198 |
+
<div class="code-block p-6 rounded-lg shadow-md overflow-hidden">
|
199 |
+
<div class="flex items-center text-gray-300 text-sm mb-4">
|
200 |
+
<div class="flex space-x-1.5 mr-4">
|
201 |
+
<span class="w-3 h-3 rounded-full bg-red-500"></span>
|
202 |
+
<span class="w-3 h-3 rounded-full bg-yellow-500"></span>
|
203 |
+
<span class="w-3 h-3 rounded-full bg-green-500"></span>
|
204 |
+
</div>
|
205 |
+
<span>hello_world.py</span>
|
206 |
+
</div>
|
207 |
+
<pre class="text-green-400 overflow-x-auto"><code class="language-python">import gradio as gr
|
208 |
+
|
209 |
+
def greet(name):
|
210 |
+
return "Hello " + name + "!"
|
211 |
+
|
212 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
213 |
+
demo.launch()</code></pre>
|
214 |
+
<div class="flex justify-between mt-6">
|
215 |
+
<button class="text-gray-300 hover:text-white text-sm">
|
216 |
+
<i class="fas fa-copy mr-1"></i> Copy
|
217 |
+
</button>
|
218 |
+
<button class="text-gray-300 hover:text-white text-sm">
|
219 |
+
<i class="fas fa-play mr-1"></i> Run
|
220 |
+
</button>
|
221 |
+
</div>
|
222 |
+
</div>
|
223 |
+
|
224 |
+
<!-- Demo Interface -->
|
225 |
+
<div class="bg-white p-6 rounded-lg shadow-md">
|
226 |
+
<h3 class="text-lg font-medium text-gray-900 mb-4">Live Demo</h3>
|
227 |
+
<div class="space-y-4">
|
228 |
+
<div>
|
229 |
+
<label for="name" class="block text-sm font-medium text-gray-700">Name</label>
|
230 |
+
<div class="mt-1 relative rounded-md shadow-sm">
|
231 |
+
<input type="text" id="name" class="focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md p-2 border" placeholder="Enter your name">
|
232 |
+
</div>
|
233 |
+
</div>
|
234 |
+
<div class="flex space-x-2">
|
235 |
+
<button class="flex-1 bg-gray-200 text-gray-800 py-2 px 4 rounded-md text-sm font-medium hover:bg-gray-300 transition-colors">
|
236 |
+
Clear
|
237 |
+
</button>
|
238 |
+
<button class="flex-1 bg-indigo-600 text-white py-2 px-4 rounded-md text-sm font-medium hover:bg-indigo-700 transition-colors">
|
239 |
+
Submit
|
240 |
+
</button>
|
241 |
+
</div>
|
242 |
+
<div>
|
243 |
+
<label for="output" class="block text-sm font-medium text-gray-700">Output</label>
|
244 |
+
<div class="mt-1">
|
245 |
+
<textarea id="output" rows="3" class="shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md p-2 border" readonly>Hello !</textarea>
|
246 |
+
</div>
|
247 |
+
</div>
|
248 |
+
<div class="flex items-center justify-between">
|
249 |
+
<button class="flex items-center text-indigo-600 hover:text-indigo-800 text-sm font-medium">
|
250 |
+
<i class="fas fa-link mr-1"></i> Share via Link
|
251 |
+
</button>
|
252 |
+
<div class="text-xs text-gray-500 flex items-center">
|
253 |
+
<span>gradio/hello_world</span>
|
254 |
+
<span class="mx-1">built with</span>
|
255 |
+
<span class="text-indigo-600 font-medium">Gradio</span>
|
256 |
+
<span class="mx-1">·</span>
|
257 |
+
<span>Hosted on</span>
|
258 |
+
<img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg" alt="Hugging Face" class="h-4 ml-1">
|
259 |
+
<span class="ml-1">Spaces</span>
|
260 |
+
</div>
|
261 |
+
</div>
|
262 |
+
</div>
|
263 |
+
</div>
|
264 |
+
</div>
|
265 |
+
</div>
|
266 |
+
</div>
|
267 |
+
</section>
|
268 |
+
|
269 |
+
<!-- Examples Section -->
|
270 |
+
<section class="py-12 bg-white">
|
271 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
272 |
+
<div class="lg:text-center">
|
273 |
+
<h2 class="text-base text-indigo-600 font-semibold tracking-wide uppercase">Examples</h2>
|
274 |
+
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl">
|
275 |
+
What you can build with Gradio
|
276 |
+
</p>
|
277 |
+
</div>
|
278 |
+
|
279 |
+
<div class="mt-10 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4">
|
280 |
+
<!-- Example 1 -->
|
281 |
+
<div class="bg-white rounded-lg shadow-md overflow-hidden card-hover transition-all duration-300">
|
282 |
+
<div class="h-48 bg-gray-200 animate-pulse-slow flex items-center justify-center">
|
283 |
+
<span class="text-gray-400">Loading preview...</span>
|
284 |
+
</div>
|
285 |
+
<div class="p-6">
|
286 |
+
<h3 class="text-lg font-medium text-gray-900">Airbnb Map</h3>
|
287 |
+
<p class="mt-1 text-gray-500">Interactive map visualization of Airbnb listings</p>
|
288 |
+
<div class="mt-6 flex items-center justify-between text-xs text-gray-500">
|
289 |
+
<span>gradio/map_airbnb</span>
|
290 |
+
<div class="flex items-center">
|
291 |
+
<span>built with</span>
|
292 |
+
<span class="text-indigo-600 font-medium ml-1">Gradio</span>
|
293 |
+
<span class="mx-1">·</span>
|
294 |
+
<span>Hosted on</span>
|
295 |
+
<img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg" alt="Hugging Face" class="h-3 ml-1">
|
296 |
+
<span class="ml-1">Spaces</span>
|
297 |
+
</div>
|
298 |
+
</div>
|
299 |
+
</div>
|
300 |
+
</div>
|
301 |
+
|
302 |
+
<!-- Example 2 -->
|
303 |
+
<div class="bg-white rounded-lg shadow-md overflow-hidden card-hover transition-all duration-300">
|
304 |
+
<div class="h-48 bg-gray-200 animate-pulse-slow flex items-center justify-center">
|
305 |
+
<span class="text-gray-400">Loading preview...</span>
|
306 |
+
</div>
|
307 |
+
<div class="p-6">
|
308 |
+
<h3 class="text-lg font-medium text-gray-900">Chatbot Streaming</h3>
|
309 |
+
<p class="mt-1 text-gray-500">Real-time streaming chatbot interaction</p>
|
310 |
+
<div class="mt-6 flex items-center justify-between text-xs text-gray-500">
|
311 |
+
<span>gradio/chatinterface_streaming_echo</span>
|
312 |
+
<div class="flex items-center">
|
313 |
+
<span>built with</span>
|
314 |
+
<span class="text-indigo-600 font-medium ml-1">Gradio</span>
|
315 |
+
<span class="mx-1">·</span>
|
316 |
+
<span>Hosted on</span>
|
317 |
+
<img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg" alt="Hugging Face" class="h-3 ml-1">
|
318 |
+
<span class="ml-1">Spaces</span>
|
319 |
+
</div>
|
320 |
+
</div>
|
321 |
+
</div>
|
322 |
+
</div>
|
323 |
+
|
324 |
+
<!-- Example 3 -->
|
325 |
+
<div class="bg-white rounded-lg shadow-md overflow-hidden card-hover transition-all duration-300">
|
326 |
+
<div class="h-48 bg-gray-200 animate-pulse-slow flex items-center justify-center">
|
327 |
+
<span class="text-gray-400">Loading preview...</span>
|
328 |
+
</div>
|
329 |
+
<div class="p-6">
|
330 |
+
<h3 class="text-lg font-medium text-gray-900">Diffusion Faces</h3>
|
331 |
+
<p class="mt-1 text-gray-500">Generate faces with diffusion models</p>
|
332 |
+
<div class="mt-6 flex items-center justify-between text-xs text-gray-500">
|
333 |
+
<span>gradio/fake_gan</span>
|
334 |
+
<div class="flex items-center">
|
335 |
+
<span>built with</span>
|
336 |
+
<span class="text-indigo-600 font-medium ml-1">Gradio</span>
|
337 |
+
<span class="mx-1">·</span>
|
338 |
+
<span>Hosted on</span>
|
339 |
+
<img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg" alt="Hugging Face" class="h-3 ml-1">
|
340 |
+
<span class="ml-1">Spaces</span>
|
341 |
+
</div>
|
342 |
+
</div>
|
343 |
+
</div>
|
344 |
+
</div>
|
345 |
+
|
346 |
+
<!-- Example 4 -->
|
347 |
+
<div class="bg-white rounded-lg shadow-md overflow-hidden card-hover transition-all duration-300">
|
348 |
+
<div class="h-48 bg-gray-200 animate-pulse-slow flex items-center justify-center">
|
349 |
+
<span class="text-gray-400">Loading preview...</span>
|
350 |
+
</div>
|
351 |
+
<div class="p-6">
|
352 |
+
<h3 class="text-lg font-medium text-gray-900">Style Transfer</h3>
|
353 |
+
<p class="mt-1 text-gray-500">Apply artistic styles to your images</p>
|
354 |
+
<div class="mt-6 flex items-center justify-between text-xs text-gray-500">
|
355 |
+
<span>gradio/style_transfer</span>
|
356 |
+
<div class="flex items-center">
|
357 |
+
<span>built with</span>
|
358 |
+
<span class="text-indigo-600 font-medium ml-1">Gradio</span>
|
359 |
+
<span class="mx-1">·</span>
|
360 |
+
<span>Hosted on</span>
|
361 |
+
<img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg" alt="Hugging Face" class="h-3 ml-1">
|
362 |
+
<span class="ml-1">Spaces</span>
|
363 |
+
</div>
|
364 |
+
</div>
|
365 |
+
</div>
|
366 |
+
</div>
|
367 |
+
</div>
|
368 |
+
</div>
|
369 |
+
</section>
|
370 |
+
|
371 |
+
<!-- Features Section -->
|
372 |
+
<section class="py-12 bg-gray-50">
|
373 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
374 |
+
<div class="lg:text-center">
|
375 |
+
<h2 class="text-base text-indigo-600 font-semibold tracking-wide uppercase">Features</h2>
|
376 |
+
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl">
|
377 |
+
Why Gradio is the best choice
|
378 |
+
</p>
|
379 |
+
</div>
|
380 |
+
|
381 |
+
<div class="mt-10">
|
382 |
+
<div class="grid grid-cols-1 gap-10 sm:grid-cols-2 lg:grid-cols-3">
|
383 |
+
<!-- Feature 1 -->
|
384 |
+
<div class="bg-white p-6 rounded-lg shadow-sm hover:shadow-md transition-shadow duration-300">
|
385 |
+
<div class="inline-flex items-center justify-center rounded-md bg-indigo-100 p-3">
|
386 |
+
<i class="fas fa-bolt text-indigo-600"></i>
|
387 |
+
</div>
|
388 |
+
<h3 class="mt-4 text-lg font-medium text-gray-900">Fast, easy setup</h3>
|
389 |
+
<p class="mt-2 text-base text-gray-500">
|
390 |
+
Gradio can be installed with pip. Creating a Gradio interface only requires adding a couple lines of code to your project.
|
391 |
+
</p>
|
392 |
+
<div class="mt-4">
|
393 |
+
<a href="https://www.gradio.app/guides/quickstart" class="inline-flex items-center text-indigo-600 hover:text-indigo-800 font-medium">
|
394 |
+
Learn more
|
395 |
+
<svg class="ml-1 h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
396 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
|
397 |
+
</svg>
|
398 |
+
</a>
|
399 |
+
</div>
|
400 |
+
</div>
|
401 |
+
|
402 |
+
<!-- Feature 2 -->
|
403 |
+
<div class="bg-white p-6 rounded-lg shadow-sm hover:shadow-md transition-shadow duration-300">
|
404 |
+
<div class="inline-flex items-center justify-center rounded-md bg-indigo-100 p-3">
|
405 |
+
<i class="fas fa-share-alt text-indigo-600"></i>
|
406 |
+
</div>
|
407 |
+
<h3 class="mt-4 text-lg font-medium text-gray-900">Present and share</h3>
|
408 |
+
<p class="mt-2 text-base text-gray-500">
|
409 |
+
Gradio can be embedded in Python notebooks or presented as a webpage. Share your model with colleagues via automatically generated public links.
|
410 |
+
</p>
|
411 |
+
<div class="mt-4">
|
412 |
+
<a href="https://gradio.app/sharing-your-app" class="inline-flex items-center text-indigo-600 hover:text-indigo-800 font-medium">
|
413 |
+
Learn more
|
414 |
+
<svg class="ml-1 h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
415 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
|
416 |
+
</svg>
|
417 |
+
</a>
|
418 |
+
</div>
|
419 |
+
</div>
|
420 |
+
|
421 |
+
<!-- Feature 3 -->
|
422 |
+
<div class="bg-white p-6 rounded-lg shadow-sm hover:shadow-md transition-shadow duration-300">
|
423 |
+
<div class="inline-flex items-center justify-center rounded-md bg-indigo-100 p-3">
|
424 |
+
<i class="fas fa-server text-indigo-600"></i>
|
425 |
+
</div>
|
426 |
+
<h3 class="mt-4 text-lg font-medium text-gray-900">Permanent hosting</h3>
|
427 |
+
<p class="mt-2 text-base text-gray-500">
|
428 |
+
Host your interface permanently on Hugging Face Spaces with a shareable link. No server setup required.
|
429 |
+
</p>
|
430 |
+
<div class="mt-4">
|
431 |
+
<a href="https://huggingface.co/spaces" class="inline-flex items-center text-indigo-600 hover:text-indigo-800 font-medium">
|
432 |
+
Learn more
|
433 |
+
<svg class="ml-1 h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
434 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
|
435 |
+
</svg>
|
436 |
+
</a>
|
437 |
+
</div>
|
438 |
+
</div>
|
439 |
+
</div>
|
440 |
+
</div>
|
441 |
+
</div>
|
442 |
+
</section>
|
443 |
+
|
444 |
+
<!-- Used by Section -->
|
445 |
+
<section class="py-12 bg-white">
|
446 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
447 |
+
<div class="lg:text-center">
|
448 |
+
<h2 class="text-base text-indigo-600 font-semibold tracking-wide uppercase">Used by</h2>
|
449 |
+
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl">
|
450 |
+
Trusted by industry leaders
|
451 |
+
</p>
|
452 |
+
</div>
|
453 |
+
|
454 |
+
<div class="mt-10">
|
455 |
+
<div class="grid grid-cols-2 gap-8 md:grid-cols-3 lg:grid-cols-7 place-items-center">
|
456 |
+
<div class="h-12 flex items-center justify-center">
|
457 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/2/2f/Google_2015_logo.svg" alt="Google" class="h-8">
|
458 |
+
</div>
|
459 |
+
<div class="h-12 flex items-center justify-center">
|
460 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/a/a9/Amazon_logo.svg" alt="Amazon" class="h-6">
|
461 |
+
</div>
|
462 |
+
<div class="h-12 flex items-center justify-center">
|
463 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/5/51/Facebook_f_logo_%282019%29.svg" alt="Facebook" class="h-7">
|
464 |
+
</div>
|
465 |
+
<div class="h-12 flex items-center justify-center">
|
466 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/0/08/Cisco_logo_blue_2016.svg" alt="Cisco" class="h-8">
|
467 |
+
</div>
|
468 |
+
<div class="h-12 flex items-center justify-center">
|
469 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/6/6f/Logo_of_Twitter.svg" alt="Twitter" class="h-6">
|
470 |
+
</div>
|
471 |
+
<div class="h-12 flex items-center justify-center">
|
472 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/9/9a/Vmware.svg" alt="VMware" class="h-8">
|
473 |
+
</div>
|
474 |
+
<div class="h-12 flex items-center justify-center">
|
475 |
+
<img src="https://huggingface.co/front/assets/huggingface_logo-noborder.svg" alt="Hugging Face" class="h-8">
|
476 |
+
</div>
|
477 |
+
</div>
|
478 |
+
</div>
|
479 |
+
</div>
|
480 |
+
</section>
|
481 |
+
|
482 |
+
<!-- Testimonials Section -->
|
483 |
+
<section class="py-12 bg-gray-50">
|
484 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
485 |
+
<div class="lg:text-center">
|
486 |
+
<h2 class="text-base text-indigo-600 font-semibold tracking-wide uppercase">Testimonials</h2>
|
487 |
+
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl">
|
488 |
+
What people are saying
|
489 |
+
</p>
|
490 |
+
</div>
|
491 |
+
|
492 |
+
<div class="mt-10">
|
493 |
+
<div class="grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-3">
|
494 |
+
<!-- Testimonial 1 -->
|
495 |
+
<div class="bg-white p-6 rounded-lg shadow-sm">
|
496 |
+
<div class="flex items-center">
|
497 |
+
<img class="w-12 h-12 rounded-full" src="https://pbs.twimg.com/profile_images/1492635399241465858/4sbu_-Af_400x400.jpg" alt="Anastasios Nikolas Angelopoulos">
|
498 |
+
<div class="ml-4">
|
499 |
+
<h4 class="text-sm font-medium text-gray-900">Anastasios Nikolas Angelopoulos</h4>
|
500 |
+
<p class="text-xs text-gray-500">@ml_angelopoulos</p>
|
501 |
+
</div>
|
502 |
+
</div>
|
503 |
+
<p class="mt-4 text-gray-600">
|
504 |
+
We love @Gradio. It helped us scale to our first million users. Amazing and undervalued that Gradio can do this.
|
505 |
+
</p>
|
506 |
+
<div class="mt-4 flex justify-end">
|
507 |
+
<a href="https://twitter.com/ml_angelopoulos/status/1925288220360909286" class="text-xs text-indigo-600 hover:text-indigo-800">View tweet</a>
|
508 |
+
</div>
|
509 |
+
</div>
|
510 |
+
|
511 |
+
<!-- Testimonial 2 -->
|
512 |
+
<div class="bg-white p-6 rounded-lg shadow-sm">
|
513 |
+
<div class="flex items-center">
|
514 |
+
<img class="w-12 h-12 rounded-full" src="https://pbs.twimg.com/profile_images/1610215964442808320/NLkT5L7d_400x400.jpg" alt="Jaydeep">
|
515 |
+
<div class="ml-4">
|
516 |
+
<h4 class="text-sm font-medium text-gray-900">Jaydeep</h4>
|
517 |
+
<p class="text-xs text-gray-500">@_jaydeepkarale</p>
|
518 |
+
</div>
|
519 |
+
</div>
|
520 |
+
<p class="mt-4 text-gray-600">
|
521 |
+
Gradio was love at first sight..so easy to use
|
522 |
+
</p>
|
523 |
+
<div class="mt-4 flex justify-end">
|
524 |
+
<a href="https://x.com/_jaydeepkarale/status/1639978163643252736" class="text-xs text-indigo-600 hover:text-indigo-800">View tweet</a>
|
525 |
+
</div>
|
526 |
+
</div>
|
527 |
+
|
528 |
+
<!-- Testimonial 3 -->
|
529 |
+
<div class="bg-white p-6 rounded-lg shadow-sm">
|
530 |
+
<div class="flex items-center">
|
531 |
+
<img class="w-12 h-12 rounded-full" src="https://pbs.twimg.com/profile_images/1475907491054301190/LsCnjnsl_400x400.jpg" alt="Art Litvinau">
|
532 |
+
<div class="ml-4">
|
533 |
+
<h4 class="text-sm font-medium text-gray-900">Art Litvinau</h4>
|
534 |
+
<p class="text-xs text-gray-500">@ArtLitvinau</p>
|
535 |
+
</div>
|
536 |
+
</div>
|
537 |
+
<p class="mt-4 text-gray-600">
|
538 |
+
I love how easy is to build quick prototypes with @Gradio ⚡️ this one took me 45 minutes with no previous experience with the library
|
539 |
+
</p>
|
540 |
+
<div class="mt-4 flex justify-end">
|
541 |
+
<a href="https://x.com/ArtLitvinau/status/1678937099343364097" class="text-xs text-indigo-600 hover:text-indigo-800">View tweet</a>
|
542 |
+
</div>
|
543 |
+
</div>
|
544 |
+
</div>
|
545 |
+
</div>
|
546 |
+
</div>
|
547 |
+
</section>
|
548 |
+
|
549 |
+
<!-- CTA Section -->
|
550 |
+
<section class="gradient-bg py-16">
|
551 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
|
552 |
+
<h2 class="text-3xl font-extrabold text-white sm:text-4xl">
|
553 |
+
Ready to build your ML app?
|
554 |
+
</h2>
|
555 |
+
<p class="mt-3 max-w-2xl mx-auto text-lg text-indigo-100">
|
556 |
+
Get started with Gradio today and deploy your machine learning models with ease.
|
557 |
+
</p>
|
558 |
+
<div class="mt-8 flex justify-center">
|
559 |
+
<div class="inline-flex rounded-md shadow">
|
560 |
+
<a href="https://www.gradio.app/guides/quickstart" class="inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-indigo-600 bg-white hover:bg-indigo-50 transition-colors">
|
561 |
+
Get Started
|
562 |
+
</a>
|
563 |
+
</div>
|
564 |
+
<div class="ml-3 inline-flex">
|
565 |
+
<a href="https://github.com/gradio-app/gradio" class="inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 bg-opacity-60 hover:bg-opacity-70 transition-colors">
|
566 |
+
<i class="fab fa-github mr-2"></i> View on GitHub
|
567 |
+
</a>
|
568 |
+
</div>
|
569 |
+
</div>
|
570 |
+
</div>
|
571 |
+
</section>
|
572 |
+
|
573 |
+
<!-- Footer -->
|
574 |
+
<footer class="bg-white">
|
575 |
+
<div class="max-w-7xl mx-auto py-12 px-4 overflow-hidden sm:px-6 lg:px-8">
|
576 |
+
<nav class="-mx-5 -my-2 flex flex-wrap justify-center" aria-label="Footer">
|
577 |
+
<div class="px-5 py-2">
|
578 |
+
<a href="https://www.gradio.app/main/docs" class="text-base text-gray-500 hover:text-gray-900">
|
579 |
+
Documentation
|
580 |
+
</a>
|
581 |
+
</div>
|
582 |
+
<div class="px-5 py-2">
|
583 |
+
<a href="https://www.gradio.app/main/guides" class="text-base text-gray-500 hover:text-gray-900">
|
584 |
+
Guides
|
585 |
+
</a>
|
586 |
+
</div>
|
587 |
+
<div class="px-5 py-2">
|
588 |
+
<a href="https://status.gradio.app/" class="text-base text-gray-500 hover:text-gray-900">
|
589 |
+
Status
|
590 |
+
</a>
|
591 |
+
</div>
|
592 |
+
</nav>
|
593 |
+
<div class="mt-8 flex justify-center space-x-6">
|
594 |
+
<a href="https://twitter.com/Gradio" class="text-gray-400 hover:text-gray-500">
|
595 |
+
<span class="sr-only">Twitter</span>
|
596 |
+
<i class="fab fa-twitter text-xl"></i>
|
597 |
+
</a>
|
598 |
+
<a href="https://github.com/gradio-app/gradio" class="text-gray-400 hover:text-gray-500">
|
599 |
+
<span class="sr-only">GitHub</span>
|
600 |
+
<i class="fab fa-github text-xl"></i>
|
601 |
+
</a>
|
602 |
+
</div>
|
603 |
+
<div class="mt-8 flex justify-center">
|
604 |
+
<img src="https://www.gradio.app/_app/immutable/assets/gradio.CHB5adID.svg" alt="Gradio logo" class="h-8">
|
605 |
+
</div>
|
606 |
+
<p class="mt-8 text-center text-base text-gray-400">
|
607 |
+
© 2023 Gradio. All rights reserved.
|
608 |
+
</p>
|
609 |
+
</div>
|
610 |
+
</footer>
|
611 |
+
|
612 |
+
<script>
|
613 |
+
// Mobile menu toggle
|
614 |
+
document.getElementById('mobile-menu-button').addEventListener('click', function() {
|
615 |
+
const menu = document.getElementById('mobile-menu');
|
616 |
+
menu.classList.toggle('hidden');
|
617 |
+
});
|
618 |
+
|
619 |
+
// Demo functionality
|
620 |
+
const nameInput = document.getElementById('name');
|
621 |
+
const outputArea = document.getElementById('output');
|
622 |
+
const submitButton = document.querySelector('button.bg-indigo-600');
|
623 |
+
|
624 |
+
submitButton.addEventListener('click', function() {
|
625 |
+
const name = nameInput.value;
|
626 |
+
outputArea.value = `Hello ${name || 'World'}!`;
|
627 |
+
});
|
628 |
+
|
629 |
+
// Copy code button functionality
|
630 |
+
const copyButton = document.querySelector('.text-gray-300.hover\\:text-white');
|
631 |
+
if (copyButton) {
|
632 |
+
copyButton.addEventListener('click', function() {
|
633 |
+
const code = document.querySelector('.language-python').textContent;
|
634 |
+
navigator.clipboard.writeText(code).then(() => {
|
635 |
+
copyButton.innerHTML = '<i class="fas fa-check mr-1"></i> Copied!';
|
636 |
+
setTimeout(() => {
|
637 |
+
copyButton.innerHTML = '<i class="fas fa-copy mr-1"></i> Copy';
|
638 |
+
}, 2000);
|
639 |
+
});
|
640 |
+
});
|
641 |
+
}
|
642 |
+
</script>
|
643 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=akhaliq/gradio-redesign" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
644 |
+
</html>
|
prompts.txt
ADDED
File without changes
|