Spaces:
Sleeping
Sleeping
File size: 443 Bytes
1cc6224 6ef1973 c50ab4f 6ef1973 c50ab4f 6ef1973 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import gradio as gr
def fake(message, history):
if message.strip():
return gr.Audio("https://github.com/gradio-app/gradio/raw/main/test/test_files/audio_sample.wav")
else:
return "Please provide the name of an artist"
gr.ChatInterface(
fake,
textbox=gr.Textbox(placeholder="Which artist's music do you want to listen to?", scale=7),
chatbot=gr.Chatbot(placeholder="Play music by any artist!"),
).launch() |