Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
# app.py
|
2 |
|
3 |
import gradio as gr
|
4 |
-
import
|
5 |
import os
|
6 |
import base64
|
7 |
from PIL import Image
|
@@ -38,6 +38,11 @@ def generate_image_from_prompt(prompt: str, history: list):
|
|
38 |
height=1024,
|
39 |
width=1024
|
40 |
)
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
generated_images = []
|
43 |
# response.data にはリクエストした全ての画像データが含まれる
|
|
|
1 |
# app.py
|
2 |
|
3 |
import gradio as gr
|
4 |
+
from together import Together
|
5 |
import os
|
6 |
import base64
|
7 |
from PIL import Image
|
|
|
38 |
height=1024,
|
39 |
width=1024
|
40 |
)
|
41 |
+
|
42 |
+
# ▼▼▼ デバッグのためにこの行を追加 ▼▼▼
|
43 |
+
print("---------- API Response ----------")
|
44 |
+
print(response)
|
45 |
+
print("--------------------------------")
|
46 |
|
47 |
generated_images = []
|
48 |
# response.data にはリクエストした全ての画像データが含まれる
|