Wedyan2023 commited on
Commit
294279a
·
verified ·
1 Parent(s): 4301295

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -17,7 +17,9 @@ load_dotenv()
17
  # Initialize the client
18
  client = OpenAI(
19
  base_url="https://api-inference.huggingface.co/v1",
20
- api_key=os.environ.get('HUGGINGFACEHUB_API_TOKEN') # Replace with your token
 
 
21
  )
22
 
23
  # Function to reset conversation
 
17
  # Initialize the client
18
  client = OpenAI(
19
  base_url="https://api-inference.huggingface.co/v1",
20
+ #api_key=os.environ.get('HUGGINGFACEHUB_API_TOKEN') # Replace with your token
21
+ api_key=os.environ.get('HF_TOKEN') # Replace with your token
22
+
23
  )
24
 
25
  # Function to reset conversation