Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,19 +1,14 @@
|
|
1 |
import gradio as gr
|
2 |
import gemini_gradio
|
3 |
-
import time
|
4 |
|
5 |
-
def
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
],
|
17 |
-
)
|
18 |
-
|
19 |
-
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
import gemini_gradio
|
|
|
3 |
|
4 |
+
def fake(message, history):
|
5 |
+
if message.strip():
|
6 |
+
return gr.Audio("https://github.com/gradio-app/gradio/raw/main/test/test_files/audio_sample.wav")
|
7 |
+
else:
|
8 |
+
return "Please provide the name of an artist"
|
9 |
|
10 |
+
gr.ChatInterface(
|
11 |
+
fake,
|
12 |
+
textbox=gr.Textbox(placeholder="Which artist's music do you want to listen to?", scale=7),
|
13 |
+
chatbot=gr.Chatbot(placeholder="Play music by any artist!"),
|
14 |
+
).launch()
|
|
|
|
|
|
|
|