Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -85,17 +85,17 @@ def getsongrecco(text_inp1,text_inp2):
|
|
85 |
return(topic)
|
86 |
|
87 |
with gr.Blocks() as demo:
|
88 |
-
gr.Markdown("<h1><center>
|
89 |
gr.Markdown(
|
90 |
-
"""
|
91 |
)
|
92 |
textbox1 = gr.Textbox(placeholder="Enter song name...", lines=1,label='Song')
|
93 |
-
textbox2 = gr.Textbox(placeholder="Enter band name...", lines=1,label='Band')
|
94 |
btn = gr.Button("Recommend")
|
95 |
-
output1 = gr.Textbox(lines=2,label='
|
96 |
|
97 |
btn.click(getsongrecco,inputs=[textbox1,textbox2], outputs=[output1])
|
98 |
-
examples = gr.Examples(examples=[["It's My Life","Bon Jovi"],["
|
99 |
inputs=[textbox1,textbox2])
|
100 |
|
101 |
|
|
|
85 |
return(topic)
|
86 |
|
87 |
with gr.Blocks() as demo:
|
88 |
+
gr.Markdown("<h1><center>Music Recommendation</center></h1>")
|
89 |
gr.Markdown(
|
90 |
+
"""Get Music Recommendations from Large Language Models. Enter a song, band/artist and get recommendations. Prompt Engineered AI model bigscience/bloom."""
|
91 |
)
|
92 |
textbox1 = gr.Textbox(placeholder="Enter song name...", lines=1,label='Song')
|
93 |
+
textbox2 = gr.Textbox(placeholder="Enter band/ artist name...", lines=1,label='Band/ Artist')
|
94 |
btn = gr.Button("Recommend")
|
95 |
+
output1 = gr.Textbox(lines=2,label='Music Recommendations')
|
96 |
|
97 |
btn.click(getsongrecco,inputs=[textbox1,textbox2], outputs=[output1])
|
98 |
+
examples = gr.Examples(examples=[["It's My Life","Bon Jovi"],["Wavin' Flag","K'naan"],['Dreamer','Ozzy Osbourne'],['Deutschland','Rammstein']],
|
99 |
inputs=[textbox1,textbox2])
|
100 |
|
101 |
|