Raiff1982 commited on
Commit
bf33043
·
verified ·
1 Parent(s): ee23a95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,7 +20,7 @@ from diffusers import DiffusionPipeline, FluxPipeline
20
  import torch
21
  import gradio as gr
22
 
23
- # Corrected code with closed parenthesis
24
  image_model = FluxPipeline.from_pretrained(
25
  "black-forest-labs/FLUX.1-dev",
26
  torch_dtype=torch.bfloat16,
@@ -190,4 +190,4 @@ class HuggingFaceChatbot:
190
  if __name__ == "__main__":
191
  logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
192
  chatbot = HuggingFaceChatbot()
193
- chatbot.launch()
 
20
  import torch
21
  import gradio as gr
22
 
23
+ # Corrected code with closed parenthesis and explicit token handling
24
  image_model = FluxPipeline.from_pretrained(
25
  "black-forest-labs/FLUX.1-dev",
26
  torch_dtype=torch.bfloat16,
 
190
  if __name__ == "__main__":
191
  logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
192
  chatbot = HuggingFaceChatbot()
193
+ chatbot.launch()