Spaces:
Running
Running
Update project/chat.py
Browse files- project/chat.py +0 -4
project/chat.py
CHANGED
|
@@ -1011,10 +1011,6 @@ def create_gradio_interface():
|
|
| 1011 |
if request and not hf_token:
|
| 1012 |
hf_token = request.headers.get("x-hf-key") or request.cookies.get("mcp_hf_key")
|
| 1013 |
|
| 1014 |
-
# TEMPORARY FREE API KEY
|
| 1015 |
-
if not openai_key:
|
| 1016 |
-
openai_key = os.getenv("OPENAI_API_KEY")
|
| 1017 |
-
|
| 1018 |
if not openai_key:
|
| 1019 |
yield "OpenAI API key not configured. Please set it in File > Keys in the Blockly interface."
|
| 1020 |
return
|
|
|
|
| 1011 |
if request and not hf_token:
|
| 1012 |
hf_token = request.headers.get("x-hf-key") or request.cookies.get("mcp_hf_key")
|
| 1013 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1014 |
if not openai_key:
|
| 1015 |
yield "OpenAI API key not configured. Please set it in File > Keys in the Blockly interface."
|
| 1016 |
return
|