minor update
Browse files
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
|
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
|