Spaces:
Runtime error
Runtime error
Axel-Student
commited on
Commit
·
bff92c9
1
Parent(s):
243498e
remove duplicate token
Browse files
app.py
CHANGED
@@ -8,9 +8,7 @@ token = os.getenv("HF_TOKEN")
|
|
8 |
client = InferenceClient(
|
9 |
provider="together",
|
10 |
api_key=token,
|
11 |
-
model="black-forest-labs/FLUX.1-dev"
|
12 |
-
token=token
|
13 |
-
)
|
14 |
|
15 |
def generate_image(prompt):
|
16 |
image = client.text_to_image(prompt)
|
|
|
8 |
client = InferenceClient(
|
9 |
provider="together",
|
10 |
api_key=token,
|
11 |
+
model="black-forest-labs/FLUX.1-dev")
|
|
|
|
|
12 |
|
13 |
def generate_image(prompt):
|
14 |
image = client.text_to_image(prompt)
|