Rakesh30 commited on
Commit
0ea94f2
·
1 Parent(s): ba3e6d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -85,7 +85,11 @@ def getOutput(text, size=1000):
85
 
86
  output=[]
87
  for idx in get_top_k_matches(np_array,5,sentences):
88
- output.append(df.iloc[idx]['Title']+'\n'+df.iloc[idx]['Plot'])
 
 
 
 
89
  return output
90
  iface = gr.Interface(fn=getOutput,
91
  inputs=[gr.inputs.Textbox(label="Text")],
 
85
 
86
  output=[]
87
  for idx in get_top_k_matches(np_array,5,sentences):
88
+ output.append("""
89
+ title:{}
90
+ plot :{}
91
+ """.format(df.iloc[idx]['title'],df.iloc[idx]['plot'])
92
+ )
93
  return output
94
  iface = gr.Interface(fn=getOutput,
95
  inputs=[gr.inputs.Textbox(label="Text")],