Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- kotresh.py +60 -0
kotresh.py
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
# Function to return personal profile info
|
| 4 |
+
def get_profile():
|
| 5 |
+
return f"""
|
| 6 |
+
# ๐ฅ Dr. Stephen Michael (Kotresha Chavadihindala)
|
| 7 |
+
|
| 8 |
+
## ๐ Visionary | AI Enthusiast | Kannada Culture Defender
|
| 9 |
+
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
## ๐ Achievements
|
| 13 |
+
|
| 14 |
+
- ๐ง Hackathon Winner: Built AI Quiz Generator in 2 hrs
|
| 15 |
+
- ๐ Founder of CUREX โ Blockchain-based Healthcare Platform
|
| 16 |
+
- ๐ค Pneumonia Detection via CNN @ SPARK Internship
|
| 17 |
+
- ๐ค Presented PDA Simulator for Complex Languages
|
| 18 |
+
- ๐ Explored Cisco, Met BD Manager Sampath
|
| 19 |
+
- ๐งโโ๏ธ Daily Yoga & Meditation since Grade 5
|
| 20 |
+
- ๐ Kannada Videos: Hawking, iPhone, Universe, Subconscious Mind
|
| 21 |
+
- ๐ฎ๐ณ Supporting Kannada Medium Schools with Alemari Anil
|
| 22 |
+
- ๐ด Rode 32km in 4hrs โ Built from Pain
|
| 23 |
+
- ๐ฐ Documented Chandrayaan Landing โ "India is on the Moon"
|
| 24 |
+
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
## ๐ Quote
|
| 28 |
+
> โHe flies his dreams one string at a time, letting the winds carry him to new heights.โ
|
| 29 |
+
"""
|
| 30 |
+
|
| 31 |
+
# Message box function
|
| 32 |
+
def respond_to_message(message):
|
| 33 |
+
return f"๐ฅ Thanks for the message! Kotresha Chavadihindala never backs down. Your words will fuel the fire."
|
| 34 |
+
|
| 35 |
+
# Interface layout
|
| 36 |
+
with gr.Blocks(title="๐ฅ Official App of Dr. Stephen Michael") as app:
|
| 37 |
+
gr.Markdown("## ๐ง Official Web App: Kotresha Chavadihindala")
|
| 38 |
+
with gr.Tab("๐ About Me"):
|
| 39 |
+
profile_btn = gr.Button("Load My Profile")
|
| 40 |
+
profile_output = gr.Markdown()
|
| 41 |
+
profile_btn.click(get_profile, outputs=profile_output)
|
| 42 |
+
|
| 43 |
+
with gr.Tab("๐ฌ Say Something"):
|
| 44 |
+
user_input = gr.Textbox(label="Your Message to Kotresha", placeholder="Drop your thoughts here...")
|
| 45 |
+
submit_btn = gr.Button("Submit")
|
| 46 |
+
reply_output = gr.Textbox(label="Response")
|
| 47 |
+
submit_btn.click(respond_to_message, inputs=user_input, outputs=reply_output)
|
| 48 |
+
|
| 49 |
+
with gr.Tab("๐ Mission"):
|
| 50 |
+
gr.Markdown("""
|
| 51 |
+
## My Mission
|
| 52 |
+
- Build Indiaโs most powerful AI Data Center
|
| 53 |
+
- Digitally revolutionize healthcare with blockchain
|
| 54 |
+
- Spread tech literacy in Kannada across the globe
|
| 55 |
+
- Keep grinding until the mind breaks, then rebuild it twice as hard.
|
| 56 |
+
""")
|
| 57 |
+
|
| 58 |
+
# Launch app
|
| 59 |
+
if __name__ == "__main__":
|
| 60 |
+
app.launch()
|