setup the logging
Browse filesadded the logging for the type of way spaces runs certain functions in the scripts as the async
app.py
CHANGED
@@ -10,6 +10,10 @@ import openai
|
|
10 |
import os
|
11 |
import spaces
|
12 |
|
|
|
|
|
|
|
|
|
13 |
# Retrieve the OpenAI API key from the environment
|
14 |
API_KEY = os.getenv('OPEN_AI_API_KEYS')
|
15 |
|
|
|
10 |
import os
|
11 |
import spaces
|
12 |
|
13 |
+
# Setup logging
|
14 |
+
logging.basicConfig(level=logging.DEBUG)
|
15 |
+
logger = logging.getLogger(__name__)
|
16 |
+
|
17 |
# Retrieve the OpenAI API key from the environment
|
18 |
API_KEY = os.getenv('OPEN_AI_API_KEYS')
|
19 |
|