psyne commited on
Commit
6888179
·
1 Parent(s): 16a1b01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -138,7 +138,7 @@ def generate_answer(question):
138
  def question_answer(url, file, question, api_key):
139
  openai.api_key = api_key
140
  openai.api_type = "azure"
141
- openai.api_base = "https://jaytest.openai.azure.com/"
142
  openai.api_version = "2022-12-01"
143
 
144
  if url.strip() == '' and file == None:
 
138
  def question_answer(url, file, question, api_key):
139
  openai.api_key = api_key
140
  openai.api_type = "azure"
141
+ openai.api_base = os.environ['AzureUrl']
142
  openai.api_version = "2022-12-01"
143
 
144
  if url.strip() == '' and file == None: