Spaces:
Running
Running
Update app.py
Browse files
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(
|
72 |
-
print(
|
73 |
print(datetime.today().strftime("%d-%m-%Y"))
|
74 |
|
75 |
-
text = prompt+"\nInput:"+
|
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=['
|
99 |
-
inputs=[
|
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()
|