Ouiam123 commited on
Commit
190622f
·
verified ·
1 Parent(s): 814d73e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ class APIInferenceChatbot:
36
  return result[0].get('generated_text', '').strip() if isinstance(result, list) and result else str(result)
37
 
38
  # Get the API token from the environment variable
39
- api_token = os.getenv("tok1")
40
  if not api_token:
41
  raise ValueError("Hugging Face API token not found in environment variables!")
42
 
 
36
  return result[0].get('generated_text', '').strip() if isinstance(result, list) and result else str(result)
37
 
38
  # Get the API token from the environment variable
39
+ api_token = os.getenv("tok_read")
40
  if not api_token:
41
  raise ValueError("Hugging Face API token not found in environment variables!")
42