acharya / app.py
rishiraj's picture
Create app.py
35a46cc verified
raw
history blame
1.05 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:
gr.Markdown("## Rishiraj Acharya")
gr.Image("profile.png")
with gr.Row():
with gr.Column():
section_dropdown = gr.Dropdown(["Experiences", "Communities", "Recommendations", "Conferences"], label="Select Information to Display")
with gr.Column():
info_display = gr.Textbox(label="Information")
section_dropdown.change(show_info, inputs=section_dropdown, outputs=info_display)
# Launch the app
app.launch()