krishbakshi commited on
Commit
266b4f1
·
verified ·
1 Parent(s): 5ef35db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -7,13 +7,13 @@ from huggingface_hub import login
7
  import os
8
 
9
  # Retrieve the token from an environment variable
10
- access_token = os.getenv('BLACK_FOREST_LABS_FLUX_1') # Replace with the correct variable name
11
 
12
- if access_token is None:
13
- raise ValueError("Token is not set in the environment variable.")
14
 
15
  # Log in using the token
16
- login(token=token)
17
 
18
  # Define a function that takes a text input and returns an image.
19
  def text_to_image(text : str):
 
7
  import os
8
 
9
  # Retrieve the token from an environment variable
10
+ # access_token = os.getenv('BLACK_FOREST_LABS_FLUX_1') # Replace with the correct variable name
11
 
12
+ # if access_token is None:
13
+ # raise ValueError("Token is not set in the environment variable.")
14
 
15
  # Log in using the token
16
+ # login(token=token)
17
 
18
  # Define a function that takes a text input and returns an image.
19
  def text_to_image(text : str):