hra commited on
Commit
90c03ea
1 Parent(s): 3f19290

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -68,11 +68,11 @@ def infer(prompt,
68
  #print(f"Processing time was {proc_time} seconds")
69
  return response
70
 
71
- def getsongrecco(text_inp):
72
- print(text_inp)
73
  print(datetime.today().strftime("%d-%m-%Y"))
74
 
75
- text = prompt+"\nInput:"+text_inp + "\nOutput:"
76
  resp = infer(text,seed=random.randint(0,100))
77
 
78
  generated_text=resp[0]['generated_text']
@@ -95,8 +95,8 @@ with gr.Blocks() as demo:
95
  output1 = gr.Textbox(lines=2,label='Market Sizing Framework')
96
 
97
  btn.click(getsongrecco,inputs=[textbox1,textbox2], outputs=[output1])
98
- examples = gr.Examples(examples=['Nothing','HR saas for fintech','book shops in NYC','Starbucks cafe in Bangalore','organic vegetables via ecommerce','grocery delivery'],
99
- inputs=[textbox])
100
 
101
 
102
  demo.launch()
 
68
  #print(f"Processing time was {proc_time} seconds")
69
  return response
70
 
71
+ def getsongrecco(text_inp1,text_inp2):
72
+ print(text_inp1,' by ',text_inp2)
73
  print(datetime.today().strftime("%d-%m-%Y"))
74
 
75
+ text = prompt+"\nInput:"+text_inp1+' by '+text_inp2 + "\nOutput:"
76
  resp = infer(text,seed=random.randint(0,100))
77
 
78
  generated_text=resp[0]['generated_text']
 
95
  output1 = gr.Textbox(lines=2,label='Market Sizing Framework')
96
 
97
  btn.click(getsongrecco,inputs=[textbox1,textbox2], outputs=[output1])
98
+ examples = gr.Examples(examples=[["It's My Life","Bon Jovi"],["Waka Waka",'Shakira']],
99
+ inputs=[textbox1,textbox2])
100
 
101
 
102
  demo.launch()