Update app.py
Browse files
app.py
CHANGED
@@ -142,7 +142,7 @@ openai.api_key = st.secrets["OPENAI_API_KEY"]
|
|
142 |
|
143 |
def generate_question(role, topic, difficulty_level):
|
144 |
prompt = f"Generate an interview question for the role of {role} on the topic of {topic} with difficulty level {difficulty_level}."
|
145 |
-
response =
|
146 |
engine="text-davinci-003", # or any other engine you prefer
|
147 |
prompt=prompt,
|
148 |
max_tokens=50
|
|
|
142 |
|
143 |
def generate_question(role, topic, difficulty_level):
|
144 |
prompt = f"Generate an interview question for the role of {role} on the topic of {topic} with difficulty level {difficulty_level}."
|
145 |
+
response = OpenAI(
|
146 |
engine="text-davinci-003", # or any other engine you prefer
|
147 |
prompt=prompt,
|
148 |
max_tokens=50
|