Spaces:
Runtime error
Runtime error
Update Card
Browse files- .gitignore +1 -0
- README.md +15 -21
- app.py +39 -4
- src/renesis-tech.jpg +0 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.venv
|
README.md
CHANGED
@@ -1,38 +1,32 @@
|
|
1 |
-
|
2 |
-
title: RENESISTECH
|
3 |
-
emoji: 🐢
|
4 |
-
colorFrom: blue
|
5 |
-
colorTo: purple
|
6 |
-
sdk: gradio
|
7 |
-
pinned: True
|
8 |
-
---
|
9 |
|
10 |
-
|
11 |
-
# Your Organization Name
|
12 |
-
|
13 |
-
[Image of your organization's logo]
|
14 |
|
15 |
**Description:**
|
16 |
-
*
|
17 |
|
18 |
**Website:**
|
19 |
-
|
20 |
|
21 |
**Social Media:**
|
22 |
-
|
|
|
|
|
|
|
|
|
23 |
|
24 |
**Repositories:**
|
25 |
-
*
|
26 |
|
27 |
**Members:**
|
28 |
*List of your organization's members*
|
29 |
|
30 |
**Contact:**
|
31 |
-
|
|
|
32 |
|
33 |
**Organization Type:**
|
34 |
-
*
|
|
|
|
|
35 |
|
36 |
-
**Featured Repositories:**
|
37 |
-
*List of your featured repositories (optional)*
|
38 |
-
Edit this `README.md` markdown file to author your organization card.
|
|
|
1 |
+
# RENESIS TECH
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
+
![Image of your organization's logo](/src/renesis-tech.jpg)
|
|
|
|
|
|
|
4 |
|
5 |
**Description:**
|
6 |
+
*Providing state-of-the-Art solutions related in the field of game development, web3, and AI.*
|
7 |
|
8 |
**Website:**
|
9 |
+
[Our Company Page](https://renesistech.com/services)
|
10 |
|
11 |
**Social Media:**
|
12 |
+
- [LinkedIn](https://www.linkedin.com/company/renesis-tech/)
|
13 |
+
- [Clutch](https://clutch.co/profile/renesis-tech?#highlights)
|
14 |
+
- [Twitter](https://twitter.com/renesis_tech)
|
15 |
+
- [Instagram](https://www.instagram.com/renesis.ui/?hl=en)
|
16 |
+
- [Facebook](https://www.facebook.com/renesistech)
|
17 |
|
18 |
**Repositories:**
|
19 |
+
*Coming Soon*
|
20 |
|
21 |
**Members:**
|
22 |
*List of your organization's members*
|
23 |
|
24 |
**Contact:**
|
25 |
+
- Email: *info@renesistech.com*
|
26 |
+
- SkypeID: *Renesistech*
|
27 |
|
28 |
**Organization Type:**
|
29 |
+
*Company to incubate innovation*
|
30 |
+
|
31 |
+
|
32 |
|
|
|
|
|
|
app.py
CHANGED
@@ -1,8 +1,43 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
def
|
4 |
-
|
|
|
|
|
|
|
5 |
|
6 |
-
|
|
|
7 |
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
+
import smtplib
|
3 |
|
4 |
+
def send_email(name, email, message):
|
5 |
+
# Replace with your email credentials
|
6 |
+
sender_email = "your_email@gmail.com"
|
7 |
+
sender_password = "your_password"
|
8 |
+
receiver_email = "recipient_email@example.com"
|
9 |
|
10 |
+
# Create a secure SSL context
|
11 |
+
context = smtplib.SSLContext()
|
12 |
|
13 |
+
# Connect to the Gmail SMTP server
|
14 |
+
with smtplib.SMTP_SSL("smtp.gmail.com", 465, context=context) as server:
|
15 |
+
server.login(sender_email, sender_password)
|
16 |
+
|
17 |
+
# Craft the email message
|
18 |
+
subject = "New Message from Your Website"
|
19 |
+
body = f"Name: {name}\nEmail: {email}\nMessage: {message}"
|
20 |
+
message = f"Subject: {subject}\n\n{body}"
|
21 |
+
|
22 |
+
# Send the email
|
23 |
+
server.sendmail(sender_email, receiver_email, message)
|
24 |
+
|
25 |
+
return "Email sent successfully!"
|
26 |
+
|
27 |
+
# Create the Gradio interface
|
28 |
+
iface = gr.Interface(
|
29 |
+
fn=send_email,
|
30 |
+
inputs=[
|
31 |
+
gr.Textbox(label="Name"),
|
32 |
+
gr.Textbox(label="Email"),
|
33 |
+
gr.Textbox(label="Message"),
|
34 |
+
],
|
35 |
+
outputs="text",
|
36 |
+
title="Contact Us",
|
37 |
+
)
|
38 |
+
|
39 |
+
# Add a logo to the top center
|
40 |
+
iface.logo = "your_logo.png"
|
41 |
+
|
42 |
+
# Launch the Gradio app
|
43 |
+
iface.launch()
|
src/renesis-tech.jpg
ADDED