Spaces:
Sleeping
Sleeping
Wynand du Plessis commited on
Commit ·
afd2f01
1
Parent(s): 53f745d
Added hugging face config
Browse files- stream_app.py +3 -3
stream_app.py
CHANGED
|
@@ -403,9 +403,9 @@ def parse_args() -> dict:
|
|
| 403 |
|
| 404 |
if __name__ == "__main__":
|
| 405 |
os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False'
|
| 406 |
-
api_key = os.environ.get("OPENAI_API_KEY")
|
| 407 |
-
if not api_key:
|
| 408 |
-
|
| 409 |
|
| 410 |
config = parse_args()
|
| 411 |
run_gradio(config)
|
|
|
|
| 403 |
|
| 404 |
if __name__ == "__main__":
|
| 405 |
os.environ['GRADIO_ANALYTICS_ENABLED'] = 'False'
|
| 406 |
+
# api_key = os.environ.get("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 |
|
| 410 |
config = parse_args()
|
| 411 |
run_gradio(config)
|