KingNish commited on
Commit
4e975f4
1 Parent(s): a835e53

Update chatbot.py

Browse files
Files changed (1) hide show
  1. chatbot.py +1 -2
chatbot.py CHANGED
@@ -313,8 +313,7 @@ def model_inference( user_prompt, chat_history):
313
  yield gr.Image(image[1])
314
  except:
315
  client_flux = InferenceClient("black-forest-labs/FLUX.1-schnell")
316
- seed = random.randint(0,999999)
317
- image = client_flux.text_to_image(query, negative_prompt=f"{seed}")
318
  yield gr.Image(image)
319
 
320
 
 
313
  yield gr.Image(image[1])
314
  except:
315
  client_flux = InferenceClient("black-forest-labs/FLUX.1-schnell")
316
+ image = client_flux.text_to_image(query)
 
317
  yield gr.Image(image)
318
 
319