Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,12 +77,8 @@ def chat_fn(message, chat_history, seed, randomize_seed, guidance_scale, steps,
|
|
| 77 |
pipe = pipe.to("cpu")
|
| 78 |
torch.cuda.empty_cache()
|
| 79 |
|
| 80 |
-
#
|
| 81 |
-
|
| 82 |
-
image.save(tmp_file.name, format="PNG")
|
| 83 |
-
temp_path = tmp_file.name
|
| 84 |
-
|
| 85 |
-
return temp_path
|
| 86 |
|
| 87 |
# --- UI Definition using gr.ChatInterface ---
|
| 88 |
|
|
|
|
| 77 |
pipe = pipe.to("cpu")
|
| 78 |
torch.cuda.empty_cache()
|
| 79 |
|
| 80 |
+
# Return the PIL Image as a Gradio Image component
|
| 81 |
+
return gr.Image(value=image)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
# --- UI Definition using gr.ChatInterface ---
|
| 84 |
|