P-Karthik-Mohan commited on
Commit
152f7d7
·
1 Parent(s): 949c1e6

Add tasks 4 and 5, fix inference with dotenv

Browse files
Files changed (1) hide show
  1. inference.py +2 -0
inference.py CHANGED
@@ -7,6 +7,8 @@ import json
7
  import time
8
  import requests
9
  from openai import OpenAI
 
 
10
 
11
  ENV_BASE_URL = "https://p-karthik-mohan-sql-analyst-env.hf.space"
12
  MAX_ATTEMPTS = 5
 
7
  import time
8
  import requests
9
  from openai import OpenAI
10
+ from dotenv import load_dotenv
11
+ load_dotenv()
12
 
13
  ENV_BASE_URL = "https://p-karthik-mohan-sql-analyst-env.hf.space"
14
  MAX_ATTEMPTS = 5