File size: 1,361 Bytes
35a46cc efe9046 35a46cc d1074e8 35a46cc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
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() |