Update app.py
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ import streamlit as st
|
|
138 |
from langchain_community.llms import OpenAI
|
139 |
|
140 |
# Set your OpenAI API key
|
141 |
-
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}."
|
|
|
138 |
from langchain_community.llms import OpenAI
|
139 |
|
140 |
# Set your OpenAI API key
|
141 |
+
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}."
|