Akbartus commited on
Commit
fd8fc15
·
verified ·
1 Parent(s): 3b11899

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -23,6 +23,7 @@ async def generate_image(prompt, model, lora_word, width, height, scales, steps,
23
  if seed == -1:
24
  seed = random.randint(0, MAX_SEED)
25
  seed = int(seed)
 
26
  text = str(Translator().translate(prompt, 'English')) + "," + lora_word
27
  client = AsyncInferenceClient()
28
  image = await client.text_to_image(prompt=text, height=height, width=width, guidance_scale=scales, num_inference_steps=steps, model=model)
 
23
  if seed == -1:
24
  seed = random.randint(0, MAX_SEED)
25
  seed = int(seed)
26
+ print(seed)
27
  text = str(Translator().translate(prompt, 'English')) + "," + lora_word
28
  client = AsyncInferenceClient()
29
  image = await client.text_to_image(prompt=text, height=height, width=width, guidance_scale=scales, num_inference_steps=steps, model=model)