Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,8 +35,11 @@ def add_to_notion(prompt, image_path):
|
|
35 |
logging.error(f"Database ID: {NOTION_DATABASE_ID}")
|
36 |
logging.error(f"Prompt: {prompt}")
|
37 |
logging.error(f"Image path: {image_path}")
|
|
|
|
|
38 |
logging.error("Please make sure the Notion integration has access to the database and the database ID is correct.")
|
39 |
raise
|
|
|
40 |
|
41 |
def respond(message, seed, randomize_seed, width, height, guidance_scale, num_inference_steps):
|
42 |
logging.info(f"Received message: {message}, seed: {seed}, randomize_seed: {randomize_seed}, "
|
|
|
35 |
logging.error(f"Database ID: {NOTION_DATABASE_ID}")
|
36 |
logging.error(f"Prompt: {prompt}")
|
37 |
logging.error(f"Image path: {image_path}")
|
38 |
+
if hasattr(e, 'response'):
|
39 |
+
logging.error(f"Full Notion API response: {e.response.text}")
|
40 |
logging.error("Please make sure the Notion integration has access to the database and the database ID is correct.")
|
41 |
raise
|
42 |
+
|
43 |
|
44 |
def respond(message, seed, randomize_seed, width, height, guidance_scale, num_inference_steps):
|
45 |
logging.info(f"Received message: {message}, seed: {seed}, randomize_seed: {randomize_seed}, "
|