Spaces:
Runtime error
Runtime error
Ajayprakashk7
commited on
Commit
•
e4857e7
1
Parent(s):
c0531f2
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import requests
|
|
7 |
API_URL = "https://api.openai.com/v1/chat/completions" #os.getenv("API_URL") + "/generate_stream"
|
8 |
|
9 |
#Huggingface provided GPT4 OpenAI API Key
|
10 |
-
OPENAI_API_KEY = os.getenv("
|
11 |
|
12 |
#Inferenec function
|
13 |
def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
|
|
|
7 |
API_URL = "https://api.openai.com/v1/chat/completions" #os.getenv("API_URL") + "/generate_stream"
|
8 |
|
9 |
#Huggingface provided GPT4 OpenAI API Key
|
10 |
+
OPENAI_API_KEY = os.getenv("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")
|
11 |
|
12 |
#Inferenec function
|
13 |
def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
|