krishbakshi commited on
Commit
d1b4bf4
·
verified ·
1 Parent(s): 3b6be69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,10 +1,12 @@
1
  from diffusers import DiffusionPipeline
2
  import gradio as gr
3
  import numpy as np
 
4
 
5
  from huggingface_hub import login
6
 
7
- login(token="black-forest-labs/FLUX.1")
 
8
 
9
  # Define a function that takes a text input and returns an image.
10
  def text_to_image(text : str):
 
1
  from diffusers import DiffusionPipeline
2
  import gradio as gr
3
  import numpy as np
4
+ import os
5
 
6
  from huggingface_hub import login
7
 
8
+
9
+ login(token= os.get('black-forest-labs/FLUX.1'))
10
 
11
  # Define a function that takes a text input and returns an image.
12
  def text_to_image(text : str):