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