Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -15,8 +15,10 @@ logging.basicConfig(level=logging.INFO)
|
|
| 15 |
logger = logging.getLogger(__name__)
|
| 16 |
|
| 17 |
app = FastAPI()
|
| 18 |
-
client =
|
| 19 |
-
|
|
|
|
|
|
|
| 20 |
|
| 21 |
async def process_batch_job(dataset: Dict[str, Any], batch_job_id: str):
|
| 22 |
"""
|
|
|
|
| 15 |
logger = logging.getLogger(__name__)
|
| 16 |
|
| 17 |
app = FastAPI()
|
| 18 |
+
client = Client(api_key=os.getenv('OPENAI_API_KEY'),organization=os.getenv('ORG_ID'))
|
| 19 |
+
url: str = os.getenv('SUPABASE_URL')
|
| 20 |
+
key: str = os.getenv('SUPABASE_KEY')
|
| 21 |
+
supabase: Client = create_client(url, key)
|
| 22 |
|
| 23 |
async def process_batch_job(dataset: Dict[str, Any], batch_job_id: str):
|
| 24 |
"""
|