Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -85,7 +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("title = "+df.iloc[idx]['Title']+" "*5+" Plot = "+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("title = "+df.iloc[idx]['Title']+" "*5+" Plot = "+df.iloc[idx]['Plot'])
|
| 89 |
return output
|
| 90 |
iface = gr.Interface(fn=getOutput,
|
| 91 |
inputs=[gr.inputs.Textbox(label="Text")],
|