sources
Browse files
app.py
CHANGED
@@ -224,7 +224,7 @@ def generate(audio, history, temperature=0.1, max_new_tokens=2048, top_p=0.8, re
|
|
224 |
|
225 |
demo = gr.Interface(
|
226 |
fn=generate,
|
227 |
-
inputs=[gr.Audio(
|
228 |
outputs=["text", "state"],
|
229 |
title="Mood-Based Music Recommender",
|
230 |
description="Hi! I'm your mood analyser. Speak into the microphone to tell me how you're feeling or what type of music you'd like!"
|
|
|
224 |
|
225 |
demo = gr.Interface(
|
226 |
fn=generate,
|
227 |
+
inputs=[gr.Audio(sources="microphone", type="filepath"), gr.State()],
|
228 |
outputs=["text", "state"],
|
229 |
title="Mood-Based Music Recommender",
|
230 |
description="Hi! I'm your mood analyser. Speak into the microphone to tell me how you're feeling or what type of music you'd like!"
|