Spaces:
Runtime error
Runtime error
File size: 399 Bytes
3ad1f61 4a6a791 3ad1f61 4a6a791 3ad1f61 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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()
|