Rakesh30 commited on
Commit
288c611
·
1 Parent(s): b851aca

Update app.py

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