Deddy commited on
Commit
eb9eb1a
1 Parent(s): 871582c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- # url_api = os.environ['url_api']
16
 
17
- client = Client("KingNish/Realtime-FLUX")
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):