From 87e6bc0c8d005310fd00e96eed7e2c4ff15b9f68 Mon Sep 17 00:00:00 2001 From: "nitin.maurya" Date: Mon, 18 Dec 2023 05:40:48 +0000 Subject: [PATCH] Delete 'upload_dict.py' --- upload_dict.py | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 upload_dict.py diff --git a/upload_dict.py b/upload_dict.py deleted file mode 100644 index a0948a4..0000000 --- a/upload_dict.py +++ /dev/null @@ -1,27 +0,0 @@ -import firebase_admin -from firebase_admin import credentials, db -import question - - -cred = credentials.Certificate("/home/knight/ChatBot_UI/chatbot.json") -firebase_admin.initialize_app(cred, { - 'databaseURL': 'https://chatbot-402717-default-rtdb.firebaseio.com/' -}) - -# Assume my_dict is your dictionary -my_dict = question.intents_and_question - -# Reference to the root of your database -root_ref = db.reference('/intents_and_questions') - -# Set the dictionary as the value at the root reference -root_ref.set(my_dict) - - - - -data = root_ref.get() - -print(data) - -