Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -233,8 +233,7 @@ def estimate_tokens(text):
|
|
233 |
def question_reformulation(question):
|
234 |
from openai import OpenAI
|
235 |
|
236 |
-
|
237 |
-
client = OpenAI(api_key=OPENAI_API_KEY)
|
238 |
|
239 |
stream = client.chat.completions.create(
|
240 |
model="gpt-4o",
|
|
|
233 |
def question_reformulation(question):
|
234 |
from openai import OpenAI
|
235 |
|
236 |
+
client = OpenAI(api_key=openai_key)
|
|
|
237 |
|
238 |
stream = client.chat.completions.create(
|
239 |
model="gpt-4o",
|