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