Spaces:
Runtime error
Runtime error
Update app.py
#13
by
Ajayprakashk7
- opened
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=[]):
|