File size: 593 Bytes
24a440f 89509c4 24a440f 89509c4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
from fastapi import FastAPI
import psycopg2
from psycopg2 import sql
import pandas as pd
app = FastAPI()
@app.get("/")
async def root():
return {"greeting":"Hello world"}
db_params = {
'host': 'dpg-cnhir5fsc6pc73dvj380-a.oregon-postgres.render.com',
'database': 'OpenAI',
'user': 'anu',
'password': '5omRLogf9Kdas3zoBFPCT9yrCGU4IbEX',
}
st.header("Profile - Job Description Match Results")
async def ProfileMatchResults():
dbQuery = "select * from profilematch"
conn = psycopg2.connect(**db_params)
df = pd.read_sql_query(dbQuery, conn)
return {"data" : df} |