Patrick079 commited on
Commit
9e4fd0a
·
verified ·
1 Parent(s): ce21bc4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def chat_short_story(length, genre, theme, tone, writing_style):
36
  )
37
 
38
  # Retrieve the Hugging Face API key from the environment
39
- HUGGINGFACE_API_KEY = os.getenv("HUGGINGFACE_API_KEY").strip()
40
  if not HUGGINGFACE_API_KEY:
41
  return "Error: Hugging Face API key not found. Please set the HUGGINGFACE_API_KEY environment variable."
42
 
 
36
  )
37
 
38
  # Retrieve the Hugging Face API key from the environment
39
+ HUGGINGFACE_API_KEY = os.getenv("HUGGINGFACE_API_KEY")
40
  if not HUGGINGFACE_API_KEY:
41
  return "Error: Hugging Face API key not found. Please set the HUGGINGFACE_API_KEY environment variable."
42