Weedoo commited on
Commit
faa8315
1 Parent(s): 45c455c

minor update

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -99,7 +99,7 @@ with gr.Blocks() as demo:
99
  feedback = upload_to_pinecone(pinecone_api_key, index_name, namespace_name, embeddings, dim, df)
100
 
101
  logging.info(feedback)
102
- if feedback is dict:
103
  return f"Retrieved {len(ids)} papers from Zotero. Successfully upserted {feedback['upserted_count']} embeddings in {namespace_name} namespace."
104
  else :
105
  return feedback
 
99
  feedback = upload_to_pinecone(pinecone_api_key, index_name, namespace_name, embeddings, dim, df)
100
 
101
  logging.info(feedback)
102
+ if isinstance(feedback, dict):
103
  return f"Retrieved {len(ids)} papers from Zotero. Successfully upserted {feedback['upserted_count']} embeddings in {namespace_name} namespace."
104
  else :
105
  return feedback