Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
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):
|