sandz7 commited on
Commit
c8fdeaf
Β·
verified Β·
1 Parent(s): be51b34

setup the logging

Browse files

added the logging for the type of way spaces runs certain functions in the scripts as the async

Files changed (1) hide show
  1. app.py +4 -0
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