Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -12,10 +12,9 @@ DEFAULT_HEIGHT = 1024
|
|
12 |
DEFAULT_INFERENCE_STEPS = 1
|
13 |
|
14 |
# Siapkan URL untuk permintaan API RT FLUX
|
15 |
-
|
16 |
|
17 |
-
client = Client(
|
18 |
-
# client = Client(url_api)
|
19 |
|
20 |
# Inference function using RealtimeFlux API
|
21 |
def generate_image(prompt, seed=42, width=DEFAULT_WIDTH, height=DEFAULT_HEIGHT, randomize_seed=False, num_inference_steps=1):
|
|
|
12 |
DEFAULT_INFERENCE_STEPS = 1
|
13 |
|
14 |
# Siapkan URL untuk permintaan API RT FLUX
|
15 |
+
url_api = os.environ['url_api']
|
16 |
|
17 |
+
client = Client(url_api)
|
|
|
18 |
|
19 |
# Inference function using RealtimeFlux API
|
20 |
def generate_image(prompt, seed=42, width=DEFAULT_WIDTH, height=DEFAULT_HEIGHT, randomize_seed=False, num_inference_steps=1):
|