Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
# Define the animation function
|
35 |
+
def animate_text():
|
36 |
+
for i in range(0, len(content), 100):
|
37 |
+
yield content[:i]
|
38 |
+
time.sleep(0.1)
|
39 |
+
|
40 |
+
# Build the Gradio interface
|
41 |
+
with gr.Blocks() as demo:
|
42 |
+
text_output = gr.Markdown()
|
43 |
+
|
44 |
+
def update_text():
|
45 |
+
for animated in animate_text():
|
46 |
+
text_output.update(animated)
|
47 |
+
|
48 |
+
demo.load(None, None, text_output, _js="() => setTimeout(() => {window.requestAnimationFrame(run)}, 1000)")
|
49 |
+
|
50 |
+
# Launch the Gradio app
|
51 |
+
demo.launch()
|