Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import requests
|
|
6 |
|
7 |
API_URL = "https://api.openai.com/v1/chat/completions" #os.getenv("API_URL") + "/generate_stream"
|
8 |
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
9 |
-
|
10 |
def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
|
11 |
headers = {
|
12 |
"Content-Type": "application/json",
|
|
|
6 |
|
7 |
API_URL = "https://api.openai.com/v1/chat/completions" #os.getenv("API_URL") + "/generate_stream"
|
8 |
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
9 |
+
print(f"the key is ^^ {OPENAI_API_KEY}")
|
10 |
def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
|
11 |
headers = {
|
12 |
"Content-Type": "application/json",
|