Update app.py
Browse files
app.py
CHANGED
@@ -1,53 +1,123 @@
|
|
1 |
import gradio as gr
|
2 |
-
import time
|
3 |
-
|
4 |
-
# Define the text content
|
5 |
-
content = """
|
6 |
-
# Welcome to kindahex
|
7 |
-
|
8 |
-
**kindahex** is an organization dedicated to developing innovative and open-source software solutions.
|
9 |
-
Our projects span various domains including AI, web development, and automation, designed to push the boundaries of technology while fostering collaboration and learning.
|
10 |
-
|
11 |
-
## 📌 What We Do
|
12 |
-
At kindahex, we focus on creating tools and platforms that:
|
13 |
-
- Simplify complex processes with intuitive user interfaces.
|
14 |
-
- Empower developers and users alike through automation.
|
15 |
-
- Leverage cutting-edge AI technologies for practical applications.
|
16 |
-
|
17 |
-
Our primary areas of interest include:
|
18 |
-
- **Artificial Intelligence**: Building AI-based solutions for diverse tasks.
|
19 |
-
- **Web Development**: Creating interactive web applications with modern technologies.
|
20 |
-
- **Automation**: Streamlining workflows to boost productivity.
|
21 |
-
|
22 |
-
## 🌱 Contributing
|
23 |
-
We welcome contributions from the open-source community! If you're interested in contributing:
|
24 |
-
1. Fork the repository you’re interested in.
|
25 |
-
2. Create a new branch (`git checkout -b feature-branch`).
|
26 |
-
3. Make your changes and commit (`git commit -m 'Add new feature'`).
|
27 |
-
4. Push your branch (`git push origin feature-branch`).
|
28 |
-
5. Open a pull request for review.
|
29 |
-
|
30 |
-
## 📬 Contact
|
31 |
-
For inquiries or collaboration, feel free to reach out to us through [GitHub](https://github.com/kindahex), or [Hugging Face discussions](https://huggingface.co/spaces/kindahex/README/discussions).
|
32 |
-
"""
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
-
# Create the Gradio interface
|
46 |
with gr.Blocks() as demo:
|
47 |
-
|
48 |
|
49 |
-
# Create a `load` event that triggers the animation
|
50 |
-
demo.load(animate, inputs=None, outputs=markdown_output)
|
51 |
-
|
52 |
-
# Launch the Gradio app
|
53 |
demo.launch()
|
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
+
html_content = """
|
4 |
+
<!DOCTYPE html>
|
5 |
+
<html lang="en">
|
6 |
+
<head>
|
7 |
+
<meta charset="UTF-8">
|
8 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
9 |
+
<title>Welcome to kindahex</title>
|
10 |
+
<style>
|
11 |
+
body {
|
12 |
+
font-family: Arial, sans-serif;
|
13 |
+
background-color: #282c34;
|
14 |
+
color: #ffffff;
|
15 |
+
padding: 20px;
|
16 |
+
}
|
17 |
+
|
18 |
+
h1, h2, h3 {
|
19 |
+
animation: fadeIn 2s ease-in-out;
|
20 |
+
}
|
21 |
+
|
22 |
+
h1 {
|
23 |
+
font-size: 3em;
|
24 |
+
margin-bottom: 20px;
|
25 |
+
}
|
26 |
+
|
27 |
+
h2 {
|
28 |
+
font-size: 2em;
|
29 |
+
margin: 10px 0;
|
30 |
+
}
|
31 |
+
|
32 |
+
h3 {
|
33 |
+
font-size: 1.5em;
|
34 |
+
}
|
35 |
+
|
36 |
+
p, li {
|
37 |
+
font-size: 1.2em;
|
38 |
+
animation: fadeIn 3s ease-in-out;
|
39 |
+
margin: 10px 0;
|
40 |
+
}
|
41 |
+
|
42 |
+
li {
|
43 |
+
list-style-type: disc;
|
44 |
+
margin-left: 20px;
|
45 |
+
}
|
46 |
+
|
47 |
+
a {
|
48 |
+
color: #61dafb;
|
49 |
+
text-decoration: none;
|
50 |
+
}
|
51 |
+
|
52 |
+
a:hover {
|
53 |
+
text-decoration: underline;
|
54 |
+
}
|
55 |
|
56 |
+
/* Animations */
|
57 |
+
@keyframes fadeIn {
|
58 |
+
0% {
|
59 |
+
opacity: 0;
|
60 |
+
transform: translateY(-10px);
|
61 |
+
}
|
62 |
+
100% {
|
63 |
+
opacity: 1;
|
64 |
+
transform: translateY(0);
|
65 |
+
}
|
66 |
+
}
|
67 |
+
|
68 |
+
/* Additional styling */
|
69 |
+
.highlight {
|
70 |
+
font-weight: bold;
|
71 |
+
color: #61dafb;
|
72 |
+
animation: fadeIn 4s ease-in-out;
|
73 |
+
}
|
74 |
+
|
75 |
+
.container {
|
76 |
+
max-width: 800px;
|
77 |
+
margin: 0 auto;
|
78 |
+
text-align: left;
|
79 |
+
}
|
80 |
+
</style>
|
81 |
+
</head>
|
82 |
+
<body>
|
83 |
+
<div class="container">
|
84 |
+
<h1>Welcome to <span class="highlight">kindahex</span></h1>
|
85 |
+
|
86 |
+
<p><strong>kindahex</strong> is an organization dedicated to developing innovative and open-source software solutions. Our projects span various domains including AI, web development, and automation, designed to push the boundaries of technology while fostering collaboration and learning.</p>
|
87 |
+
|
88 |
+
<h2>📌 What We Do</h2>
|
89 |
+
<p>At kindahex, we focus on creating tools and platforms that:</p>
|
90 |
+
<ul>
|
91 |
+
<li>Simplify complex processes with intuitive user interfaces.</li>
|
92 |
+
<li>Empower developers and users alike through automation.</li>
|
93 |
+
<li>Leverage cutting-edge AI technologies for practical applications.</li>
|
94 |
+
</ul>
|
95 |
+
|
96 |
+
<p>Our primary areas of interest include:</p>
|
97 |
+
<ul>
|
98 |
+
<li><strong>Artificial Intelligence</strong>: Building AI-based solutions for diverse tasks.</li>
|
99 |
+
<li><strong>Web Development</strong>: Creating interactive web applications with modern technologies.</li>
|
100 |
+
<li><strong>Automation</strong>: Streamlining workflows to boost productivity.</li>
|
101 |
+
</ul>
|
102 |
+
|
103 |
+
<h2>🌱 Contributing</h2>
|
104 |
+
<p>We welcome contributions from the open-source community! If you're interested in contributing:</p>
|
105 |
+
<ul>
|
106 |
+
<li>Fork the repository you’re interested in.</li>
|
107 |
+
<li>Create a new branch (`git checkout -b feature-branch`).</li>
|
108 |
+
<li>Make your changes and commit (`git commit -m 'Add new feature'`).</li>
|
109 |
+
<li>Push your branch (`git push origin feature-branch`).</li>
|
110 |
+
<li>Open a pull request for review.</li>
|
111 |
+
</ul>
|
112 |
+
|
113 |
+
<h2>📬 Contact</h2>
|
114 |
+
<p>For inquiries or collaboration, feel free to reach out to us through <a href="https://github.com/kindahex" target="_blank">GitHub</a>, or <a href="https://huggingface.co/spaces/kindahex/README/discussions" target="_blank">Hugging Face discussions</a>.</p>
|
115 |
+
</div>
|
116 |
+
</body>
|
117 |
+
</html>
|
118 |
+
"""
|
119 |
|
|
|
120 |
with gr.Blocks() as demo:
|
121 |
+
gr.HTML(html_content)
|
122 |
|
|
|
|
|
|
|
|
|
123 |
demo.launch()
|