Spaces:
Runtime error
Runtime error
Delete README.md
Browse files
README.md
DELETED
|
@@ -1,40 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
# Gemini Distractor Generator
|
| 3 |
-
|
| 4 |
-
This is a simple web app that uses Gemini 1.5 Flash (via Gemini API) to generate multiple-choice distractors for a given question. It automatically identifies the correct answer and returns three plausible distractors.
|
| 5 |
-
|
| 6 |
-
## Features
|
| 7 |
-
- Uses Gemini 1.5 Flash (Free Tier) via API
|
| 8 |
-
- Auto-generates distractors based on question context
|
| 9 |
-
- Also attempts to identify the correct answer
|
| 10 |
-
- Includes minimal Gradio UI
|
| 11 |
-
|
| 12 |
-
## Files
|
| 13 |
-
- `app.py`: Main Gradio application.
|
| 14 |
-
- `requirements.txt`: Required Python libraries.
|
| 15 |
-
- `README.md`: This file.
|
| 16 |
-
|
| 17 |
-
## How to Run
|
| 18 |
-
|
| 19 |
-
### Locally
|
| 20 |
-
1. Install the dependencies:
|
| 21 |
-
```bash
|
| 22 |
-
pip install -r requirements.txt
|
| 23 |
-
```
|
| 24 |
-
|
| 25 |
-
2. Run the app:
|
| 26 |
-
```bash
|
| 27 |
-
python app.py
|
| 28 |
-
```
|
| 29 |
-
|
| 30 |
-
3. Visit the local URL shown by Gradio.
|
| 31 |
-
|
| 32 |
-
### On Hugging Face Spaces
|
| 33 |
-
1. Upload all three files to your Hugging Face Space.
|
| 34 |
-
2. Choose `Gradio` as the SDK.
|
| 35 |
-
3. Make sure to set your Gemini API key in a secure way (e.g., using secrets or hardcoded for testing).
|
| 36 |
-
4. Set `app.py` as the entry point.
|
| 37 |
-
|
| 38 |
-
## Notes
|
| 39 |
-
- Gemini 1.5 Flash is selected to stay within free-tier quotas.
|
| 40 |
-
- You may need to set your API key inside `app.py` manually.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|