Spaces:
Sleeping
Sleeping
Wynand du Plessis commited on
Commit ·
6eee7b4
1
Parent(s): afd2f01
Added hugging face config
Browse files- stream_app.py +1 -1
stream_app.py
CHANGED
|
@@ -403,7 +403,7 @@ def parse_args() -> dict:
|
|
| 403 |
|
| 404 |
if __name__ == "__main__":
|
| 405 |
os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False'
|
| 406 |
-
|
| 407 |
# if not api_key:
|
| 408 |
# raise ValueError("OPENAI_API_KEY environment variable not set as environment variable or as a setting in `.env`. (see https://platform.openai.com/docs/quickstart/step-2-set-up-your-api-key)")
|
| 409 |
|
|
|
|
| 403 |
|
| 404 |
if __name__ == "__main__":
|
| 405 |
os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False'
|
| 406 |
+
api_key = os.getenv("OPENAI_API_KEY")
|
| 407 |
# if not api_key:
|
| 408 |
# raise ValueError("OPENAI_API_KEY environment variable not set as environment variable or as a setting in `.env`. (see https://platform.openai.com/docs/quickstart/step-2-set-up-your-api-key)")
|
| 409 |
|