Files changed (1) hide show
  1. app.py +3 -0
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