Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
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:
|