Download index.html from Ravi7767/Test_book: direct link, hf CLI and curl.
- Browser
- Download file 3.21 kB
-
https://huggingface.co/spaces/Ravi7767/Test_book/resolve/main/index.html
- Command line
-
hf download hf://spaces/Ravi7767/Test_book/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Ravi7767/Test_book/resolve/main/index.html
3.21 kB
| <html lang="hi"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>AI Test Generator & OMR</title> | |
| <!-- PyScript: Enables Python inside browser HTML --> | |
| <link rel="stylesheet" href="https://pyscript.net"> | |
| <script type="module" src="https://pyscript.net"></script> | |
| <script src="https://jsdelivr.net"></script> | |
| </head> | |
| <body class="bg-gray-100 font-sans p-4"> | |
| <div class="max-w-4xl mx-auto bg-white p-6 rounded-xl shadow-lg"> | |
| <h1 class="text-2xl font-bold text-center text-blue-600 mb-6">📚 AI Book Reader & OMR Test Room</h1> | |
| <!-- Input Section --> | |
| <div class="space-y-4 bg-gray-50 p-4 rounded-lg mb-6"> | |
| <div> | |
| <label class="block font-semibold text-gray-700">1. Enter Gemini API Key:</label> | |
| <input type="password" id="api_key" class="w-full p-2 border rounded mt-1" placeholder="AI Studio से मिली की यहाँ डालें"> | |
| </div> | |
| <div> | |
| <label class="block font-semibold text-gray-700">2. Paste Study Material / Book Text:</label> | |
| <textarea id="material" rows="5" class="w-full p-2 border rounded mt-1" placeholder="किताब का पैराग्राफ या चैप्टर का टेक्स्ट यहाँ पेस्ट करें..."></textarea> | |
| </div> | |
| <div class="flex gap-4"> | |
| <div class="w-1/2"> | |
| <label class="block font-semibold text-gray-700">3. Questions Count:</label> | |
| <input type="number" id="q_count" value="3" min="1" max="10" class="w-full p-2 border rounded mt-1"> | |
| </div> | |
| </div> | |
| <button id="gen_btn" py-click="generate_paper" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded shadow"> | |
| ⚡ Generate Paper Instantly | |
| </button> | |
| </div> | |
| <!-- Status Message --> | |
| <div id="status" class="text-center italic text-gray-600 my-2"></div> | |
| <!-- Live Quiz & OMR Layout --> | |
| <div id="quiz_area" class="hidden grid md:grid-cols-2 gap-6 mt-6 border-t pt-6"> | |
| <div> | |
| <h3 class="font-bold text-lg text-gray-800 border-b pb-2 mb-4">📋 Question Paper</h3> | |
| <div id="questions_box" class="space-y-4"></div> | |
| </div> | |
| <div> | |
| <h3 class="font-bold text-lg text-gray-800 border-b pb-2 mb-4">🔘 Interactive OMR Sheet</h3> | |
| <div id="omr_box" class="space-y-4"></div> | |
| <button id="submit_btn" py-click="check_results" class="w-full bg-green-600 hover:bg-green-700 text-white font-bold py-2 px-4 rounded shadow mt-6"> | |
| 📤 Submit OMR Sheet | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Result Box --> | |
| <div id="result_box" class="hidden bg-blue-50 border border-blue-200 p-6 rounded-xl mt-6"></div> | |
| </div> | |
| <!-- Python Script Integration --> | |
| <script type="py" src="./main.py" config="./pyscript.json"></script> | |
| </body> | |
| </html> | |