Spaces:
Sleeping
Sleeping
Commit
·
6455cee
1
Parent(s):
17e5473
chore: update .gitignore to exclude Python bytecode files and modify prompt in page.tsx for image generation clarity
Browse files- .gitignore +2 -1
- app/page.tsx +1 -1
- backend/app/services/image_service.py +1 -0
.gitignore
CHANGED
@@ -40,4 +40,5 @@ yarn-error.log*
|
|
40 |
*.tsbuildinfo
|
41 |
next-env.d.ts
|
42 |
node_modules
|
43 |
-
.next
|
|
|
|
40 |
*.tsbuildinfo
|
41 |
next-env.d.ts
|
42 |
node_modules
|
43 |
+
.next
|
44 |
+
*.pyc
|
app/page.tsx
CHANGED
@@ -32,7 +32,7 @@ interface ImageGenerationResponse {
|
|
32 |
|
33 |
const DEFAULT_PROMPT = `這是我創作的角色,叫做狐狸貓,請完全保留圖片中的狐狸貓外觀,包括:
|
34 |
五官大小、頭身比例、身體各部位大小、耳朵大小及陰影角度。
|
35 |
-
|
36 |
請直接給我圖片,不需要回復任何文字`;
|
37 |
|
38 |
export default function Home() {
|
|
|
32 |
|
33 |
const DEFAULT_PROMPT = `這是我創作的角色,叫做狐狸貓,請完全保留圖片中的狐狸貓外觀,包括:
|
34 |
五官大小、頭身比例、身體各部位大小、耳朵大小及陰影角度。
|
35 |
+
注意,狐狸貓角色「沒有」筆觸描邊、圖片上不要有任何文字、透明背景
|
36 |
請直接給我圖片,不需要回復任何文字`;
|
37 |
|
38 |
export default function Home() {
|
backend/app/services/image_service.py
CHANGED
@@ -48,6 +48,7 @@ class ImageGenerationService:
|
|
48 |
logger.info(f"Generating {n} image(s) with prompt: {prompt}")
|
49 |
|
50 |
if reference_image:
|
|
|
51 |
# Use the newer responses API with image generation tools for reference images
|
52 |
logger.info("Using reference image with responses API")
|
53 |
|
|
|
48 |
logger.info(f"Generating {n} image(s) with prompt: {prompt}")
|
49 |
|
50 |
if reference_image:
|
51 |
+
logging.info(f"Reference image: {settings.OPENAI_API_KEY}")
|
52 |
# Use the newer responses API with image generation tools for reference images
|
53 |
logger.info("Using reference image with responses API")
|
54 |
|