Spaces:
Build error
Build error
Commit ·
9b50757
1
Parent(s): 478abc9
postgress update (other 2 conn)
Browse files
main.py
CHANGED
|
@@ -408,10 +408,10 @@ def fetch_vectorstore_from_db(file_id):
|
|
| 408 |
def get_next_namespace():
|
| 409 |
conn = psycopg2.connect(
|
| 410 |
dbname="postgres",
|
| 411 |
-
user="postgres.
|
| 412 |
-
password="
|
| 413 |
-
host="aws-0-
|
| 414 |
-
port="
|
| 415 |
)
|
| 416 |
cur = conn.cursor()
|
| 417 |
cur.execute("SELECT COUNT(*) FROM investment_research_pro")
|
|
@@ -427,10 +427,10 @@ def insert_data(file_id, file_name, name_space):
|
|
| 427 |
print("inserted")
|
| 428 |
conn = psycopg2.connect(
|
| 429 |
dbname="postgres",
|
| 430 |
-
user="postgres.
|
| 431 |
-
password="
|
| 432 |
-
host="aws-0-
|
| 433 |
-
port="
|
| 434 |
)
|
| 435 |
cur = conn.cursor()
|
| 436 |
create_table_query = """
|
|
|
|
| 408 |
def get_next_namespace():
|
| 409 |
conn = psycopg2.connect(
|
| 410 |
dbname="postgres",
|
| 411 |
+
user="postgres.vjbkvfmqsaebxlnvvjtm",
|
| 412 |
+
password="FPaN3iV1fuWteBON",
|
| 413 |
+
host="aws-0-ap-south-1.pooler.supabase.com",
|
| 414 |
+
port="6543",
|
| 415 |
)
|
| 416 |
cur = conn.cursor()
|
| 417 |
cur.execute("SELECT COUNT(*) FROM investment_research_pro")
|
|
|
|
| 427 |
print("inserted")
|
| 428 |
conn = psycopg2.connect(
|
| 429 |
dbname="postgres",
|
| 430 |
+
user="postgres.vjbkvfmqsaebxlnvvjtm",
|
| 431 |
+
password="FPaN3iV1fuWteBON",
|
| 432 |
+
host="aws-0-ap-south-1.pooler.supabase.com",
|
| 433 |
+
port="6543",
|
| 434 |
)
|
| 435 |
cur = conn.cursor()
|
| 436 |
create_table_query = """
|