Spaces:
Runtime error
Runtime error
Update app.py
#74
by
gplucinik
- opened
app.py
CHANGED
@@ -6,6 +6,9 @@ import requests
|
|
6 |
#Streaming endpoint
|
7 |
API_URL = "https://api.openai.com/v1/chat/completions" #os.getenv("API_URL") + "/generate_stream"
|
8 |
|
|
|
|
|
|
|
9 |
#Inferenec function
|
10 |
def predict(openai_gpt4_key, system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
|
11 |
|
|
|
6 |
#Streaming endpoint
|
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(openai_gpt4_key, system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
|
14 |
|