You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### **Option 2: Paste the API Key Directly into the Script**
64
64
65
-
1. Open the `quiz_generator.py` file in your code editor.
65
+
1. Open the `main.py` file in your code editor.
66
66
2. Find the following line in the script (around line 38):
67
67
```python
68
68
API_KEY= os.environ["GROQ_API_KEY"]
@@ -92,7 +92,7 @@ pip install -r requirements.txt
92
92
### Step 5: Run the Script
93
93
1. To generate the quiz, open a terminal or command prompt in the folder where the script is located and run the following command:
94
94
```
95
-
python quiz_generator.py
95
+
python main.py
96
96
```
97
97
This will extract the text from the PDFs, generate multiple-choice questions (MCQs) using the language model, and save the output the folder named `Source`.
0 commit comments