Jether commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,21 +69,4 @@ demo = gr.ChatInterface(
|
|
| 69 |
|
| 70 |
|
| 71 |
if __name__ == "__main__":
|
| 72 |
-
demo.launch()
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
import gradio as gr
|
| 78 |
-
|
| 79 |
-
def music(message, history):
|
| 80 |
-
if message.strip():
|
| 81 |
-
return gr.Audio("https://github.com/gradio-app/gradio/raw/main/test/test_files/audio_sample.wav")
|
| 82 |
-
else:
|
| 83 |
-
return "Please provide the name of an artist"
|
| 84 |
-
|
| 85 |
-
gr.ChatInterface(
|
| 86 |
-
music,
|
| 87 |
-
type="messages",
|
| 88 |
-
textbox=gr.Textbox(placeholder="Which artist's music do you want to listen to?", scale=7),
|
| 89 |
-
).launch()
|
|
|
|
| 69 |
|
| 70 |
|
| 71 |
if __name__ == "__main__":
|
| 72 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|