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