acharya / app.py
rishiraj's picture
Update app.py
efe9046 verified
raw
history blame
1.36 kB
import gradio as gr
# Function to handle dynamic content display
def show_info(section):
if section == "Experiences":
return "Details about Rishiraj's experiences..."
elif section == "Communities":
return "Details about communities Rishiraj is involved in..."
elif section == "Recommendations":
return "Rishiraj's recommendations..."
elif section == "Conferences":
return "Conferences attended by Rishiraj..."
else:
return "Select a section to display information."
# Creating Gradio Interface
with gr.Blocks() as app:
with gr.Row():
with gr.Column():
gr.Markdown("# Hi πŸ‘‹, I'm Rishiraj Acharya (ΰ¦‹ΰ¦·ΰ¦Ώΰ¦°ΰ¦Ύΰ¦œ ΰ¦†ΰ¦šΰ¦Ύΰ¦°ΰ§ΰ¦―ΰ§ΰ¦―)")
gr.Markdown("## Google Developer Expert in ML ✨ | Hugging Face Fellow πŸ€— | GSoC '22 at TensorFlow πŸ‘¨πŸ»β€πŸ”¬ | TFUG Kolkata Organizer πŸŽ™οΈ | Kaggle Master 🧠 | Dynopii ML Engineer πŸ‘¨πŸ»β€πŸ’»")
with gr.Column():
gr.Image("profile.png")
with gr.Row():
section_dropdown = gr.Dropdown(["Experiences", "Communities", "Recommendations", "Conferences"], label="Select Information to Display")
info_display = gr.Textbox(label="Information")
section_dropdown.change(show_info, inputs=section_dropdown, outputs=info_display)
# Launch the app
app.launch()