AFischer1985 commited on
Commit
7f7d174
1 Parent(s): 74e47b9

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +1 -1
run.py CHANGED
@@ -102,7 +102,7 @@ def response(
102
  #where={"source": "google-docs"}
103
  #where_document={"$contains":"search_string"}
104
  )
105
- dists=["<small>(relevance: "+str(round((1-d)*100)/100)+";" for d in results['distances'][0]]
106
  sources=["source: "+s["source"]+")</small>" for s in results['metadatas'][0]]
107
  results=results['documents'][0]
108
  combination = zip(results,dists,sources)
 
102
  #where={"source": "google-docs"}
103
  #where_document={"$contains":"search_string"}
104
  )
105
+ dists=["<br><small>(relevance: "+str(round((1-d)*100)/100)+";" for d in results['distances'][0]]
106
  sources=["source: "+s["source"]+")</small>" for s in results['metadatas'][0]]
107
  results=results['documents'][0]
108
  combination = zip(results,dists,sources)