hra commited on
Commit
653c1a7
1 Parent(s): f6920e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -8
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.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']],
 
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']],