Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,8 +44,6 @@ async def retry_query(payload, retries=5, delay=30):
|
|
44 |
async def generate_image():
|
45 |
try:
|
46 |
data = request.json # This is synchronous
|
47 |
-
logging.info(f"Received data: {data}")
|
48 |
-
logging.info(f"Received data: {os.getenv('HUGGING_FACE_API_KEY')}")
|
49 |
|
50 |
positive_prompt = data.get('positive_prompt', 'emma stone')
|
51 |
negative_prompt = data.get('negative_prompt', '[deformed | disfigured] , poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers) , blurry,clothes, bad lighting, low-quality, deformed, text, poorly drawn, holding camera, bad art, bad angle, boring, low-resolution, worst quality, bad composition, disfigured')
|
|
|
44 |
async def generate_image():
|
45 |
try:
|
46 |
data = request.json # This is synchronous
|
|
|
|
|
47 |
|
48 |
positive_prompt = data.get('positive_prompt', 'emma stone')
|
49 |
negative_prompt = data.get('negative_prompt', '[deformed | disfigured] , poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers) , blurry,clothes, bad lighting, low-quality, deformed, text, poorly drawn, holding camera, bad art, bad angle, boring, low-resolution, worst quality, bad composition, disfigured')
|