Jazz1508 commited on
Commit
e4e2696
·
verified ·
1 Parent(s): 6c7468a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ from sentence_transformers import SentenceTransformer, util
7
  similarity_model = SentenceTransformer('all-MiniLM-L6-v2')
8
 
9
  # Get OpenAI API key from Hugging Face secret
10
- openai.api_key = os.getenv("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")
11
 
12
  def generate_unique_questions(topic, difficulty, num_questions, constraints):
13
  base_prompt = f"""
 
7
  similarity_model = SentenceTransformer('all-MiniLM-L6-v2')
8
 
9
  # Get OpenAI API key from Hugging Face secret
10
+ openai.api_key = "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"
11
 
12
  def generate_unique_questions(topic, difficulty, num_questions, constraints):
13
  base_prompt = f"""