Spaces:
Sleeping
Sleeping
試用gpt-4o畫圖吉卜力風格
Browse files- Dockerfile +1 -1
- gpt4.py +3 -2
Dockerfile
CHANGED
|
@@ -14,4 +14,4 @@ USER appuser
|
|
| 14 |
|
| 15 |
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD curl -f http://0.0.0.0:7860/ || exit 1
|
| 16 |
|
| 17 |
-
CMD ["gunicorn","-b", "0.0.0.0:7860", "
|
|
|
|
| 14 |
|
| 15 |
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD curl -f http://0.0.0.0:7860/ || exit 1
|
| 16 |
|
| 17 |
+
CMD ["gunicorn","-b", "0.0.0.0:7860", "gpt4:app"]
|
gpt4.py
CHANGED
|
@@ -99,8 +99,9 @@ def handle_text_message(event):
|
|
| 99 |
prompt = user_input[3:].strip()
|
| 100 |
try:
|
| 101 |
response = client.images.generate(
|
| 102 |
-
model="dall-e-3",
|
| 103 |
-
|
|
|
|
| 104 |
size="1024x1024",
|
| 105 |
quality="standard",
|
| 106 |
n=1,
|
|
|
|
| 99 |
prompt = user_input[3:].strip()
|
| 100 |
try:
|
| 101 |
response = client.images.generate(
|
| 102 |
+
# model="dall-e-3",
|
| 103 |
+
model="gpt-4o",
|
| 104 |
+
prompt=f"使用下面的文字來畫一幅畫,使用吉卜力風格:{prompt}",
|
| 105 |
size="1024x1024",
|
| 106 |
quality="standard",
|
| 107 |
n=1,
|