removed legacy code
Browse files
app.py
CHANGED
@@ -6,9 +6,6 @@ import requests
|
|
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("OPENAI_API_KEY")
|
11 |
-
|
12 |
#Inferenec function
|
13 |
def predict(openai_gpt4_key, system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], history=[]):
|
14 |
|
|
|
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 |
|