Spaces:
Runtime error
Runtime error
import gradio as gr | |
from recos import recos, choices | |
def give_recos(podcast): | |
return recos[podcast] | |
# Interface setup | |
podcast_dropdown = gr.components.Dropdown(choices=choices, label="Select Podcast:") | |
output_text = gr.components.Textbox(label="Recommended podcasts:") | |
# Create Gradio interface | |
iface = gr.Interface(fn=give_recos, inputs=podcast_dropdown, outputs=output_text) | |
iface.launch() | |