Update app.py
Browse files
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()
|