2050m / app.py
Jofax's picture
Update app.py
a656bbd verified
import gradio as gr
import pandas as pd
# --- 2026 Opportunity Data ---
def get_opportunities():
data = {
"ފުރުޞަތު (Opportunity)": ["Girls to Code - Malé", "MINDCo Internship", "TechGirls STEM 2026", "Dhiraagu Apprenticeship"],
"ބާވަތް (Type)": ["Coding", "Technology", "STEM Exchange", "Career Start"],
"ސުންގަޑި (Deadline)": ["March 15, 2026", "Open Now", "March 1, 2026", "Ongoing"]
}
return pd.DataFrame(data)
# --- UI Interface ---
with gr.Blocks(theme=gr.themes.Soft(primary_hue="pink")) as demo:
gr.Markdown("# 🌸 އަންހެނުން (Anhenun): Girls of Maldives 2026")
with gr.Tabs():
# Tab 1: Opportunities & Education
with gr.TabItem("🎓 ތަޢުލީމާއި ފުރުޞަތު"):
gr.Markdown("### 2026 ވަނަ އަހަރުގެ އަންހެން ކުދިންނަށް ހުރި ފުރުޞަތުތައް")
gr.DataFrame(get_opportunities())
gr.Button("ކޯޑިންގް ޕްރޮގްރާމްގައި ބައިވެރިވޭ", variant="primary")
# Tab 2: Financial Empowerment (Mariyam's Wallet)
with gr.TabItem("💰 މާލީ ރައްކާތެރިކަން"):
gr.Markdown("### މަރިޔަމްގެ ވޮލެޓް: އިޤްތިޞާދީ ހާލަތުން ސަލާމަތްވުމަށް")
with gr.Row():
gr.Number(label="ރައްކާކުރި ޢަދަދު (MVR)", value=500)
gr.Label(label="ޑޮލަރުގެ އަގަށް އަންނަ ބަދަލު", value="⚠️ High Inflation Risk")
gr.Markdown("💡 *ނަސޭހަތް: މި ދުވަސްވަރު ޑޮލަރުން ރައްކާކުރުން ބުއްދިވެރިވާނެއެވެ.*")
# Tab 3: Lifestyle & Wellness
with gr.TabItem("🧘‍♀️ ދިރިއުޅުމުގެ ވައްޓަފާޅި"):
gr.Markdown("### ވެލްނަސް އަދި ސޯޝަލް ހަރަކާތްތައް")
with gr.Row():
gr.CheckboxGroup(["ޔޯގާ ސެޝަން", "ސާފިންގް މީޓަޕް", "ސްލޯ ޓްރެވަލް ރިޓްރީޓް"], label="މިއަދުގެ ހަރަކާތްތައް")
gr.Image(label="2026 ރާޅުގަނޑު މީޓަޕް", value="https://images.unsplash.com/photo-1544367567-0f2fcb009e0b")
gr.Markdown("---")
gr.Markdown("✨ *ޖޯފެކްސް 2050: އަންހެނުން ބާރުވެރިކުރުވައިގެން މުސްތަޤްބަލް އާރާސްތުކުރުން*")
if __name__ == "__main__":
demo.launch()