|
@@ -8,7 +8,7 @@ def queryColelctionByText(text):
|
|
|
return '查询失败'
|
|
|
# docs 返回id和fields
|
|
|
result = []
|
|
|
- result.append("videoId 标题 回流人数 分享次数 分享人数 曝光次数 曝光人数 播放次数 播放人数 相似度")
|
|
|
+ result.append("videoId\t标题\t回流人数\t分享次数\t分享人数\t曝光次数\t曝光人数\t播放次数\t播放人数\t相似度")
|
|
|
for doc in docs:
|
|
|
videoId = doc.id
|
|
|
title = doc.fields['title']
|
|
@@ -29,4 +29,4 @@ iface = gr.Interface(fn=queryColelctionByText,
|
|
|
lines=7, label="请输入文本内容"),
|
|
|
outputs="text",
|
|
|
title="视频内容向量检索,相似度匹配")
|
|
|
-iface.launch(share=False)
|
|
|
+iface.launch(share=True)
|