Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,9 +87,7 @@ Do not output conversational text. Output ONLY the exam paper in a well-formatte
|
|
| 87 |
return f"β Error processing PDF: {str(e)}\n\nPlease check:\n1. PDF is valid and contains text\n2. HF_TOKEN is correctly set\n3. You have access to Llama 3"
|
| 88 |
|
| 89 |
# --- 3. The UI ---
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
with gr.Blocks(theme=theme, title="AI Question Paper Generator") as demo:
|
| 93 |
gr.Markdown("# π AI Question Paper Generator")
|
| 94 |
gr.Markdown("Powered by **Llama 3 (8B)** via Hugging Face Inference API")
|
| 95 |
gr.Markdown("β‘ Fast β’ π― Accurate β’ π Context-Aware")
|
|
|
|
| 87 |
return f"β Error processing PDF: {str(e)}\n\nPlease check:\n1. PDF is valid and contains text\n2. HF_TOKEN is correctly set\n3. You have access to Llama 3"
|
| 88 |
|
| 89 |
# --- 3. The UI ---
|
| 90 |
+
with gr.Blocks(title="AI Question Paper Generator", theme=gr.themes.Soft(primary_hue="blue")) as demo:
|
|
|
|
|
|
|
| 91 |
gr.Markdown("# π AI Question Paper Generator")
|
| 92 |
gr.Markdown("Powered by **Llama 3 (8B)** via Hugging Face Inference API")
|
| 93 |
gr.Markdown("β‘ Fast β’ π― Accurate β’ π Context-Aware")
|