Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,9 +86,9 @@ Do not output conversational text. Output ONLY the exam paper in a well-formatte
|
|
| 86 |
return f"β Error: {str(e)}\n\nPlease check:\n1. PDF is valid and contains text\n2. HF_TOKEN is correctly set in Space secrets\n3. Try again or contact support"
|
| 87 |
|
| 88 |
# --- 3. The UI ---
|
| 89 |
-
with gr.Blocks(title="AI Question Paper Generator"
|
| 90 |
gr.Markdown("# π AI Question Paper Generator")
|
| 91 |
-
gr.Markdown("Powered by **Llama 3.2 3B**
|
| 92 |
gr.Markdown("β‘ Fast β’ π― Accurate β’ π Context-Aware")
|
| 93 |
|
| 94 |
with gr.Row():
|
|
@@ -128,11 +128,5 @@ with gr.Blocks(title="AI Question Paper Generator", theme=gr.themes.Soft(primary
|
|
| 128 |
outputs=output
|
| 129 |
)
|
| 130 |
|
| 131 |
-
gr.Markdown("""
|
| 132 |
-
---
|
| 133 |
-
**Note:** Set `HF_TOKEN` in your Space's Settings β Repository secrets.
|
| 134 |
-
Get your token from https://huggingface.co/settings/tokens
|
| 135 |
-
""")
|
| 136 |
-
|
| 137 |
if __name__ == "__main__":
|
| 138 |
demo.launch()
|
|
|
|
| 86 |
return f"β Error: {str(e)}\n\nPlease check:\n1. PDF is valid and contains text\n2. HF_TOKEN is correctly set in Space secrets\n3. Try again or contact support"
|
| 87 |
|
| 88 |
# --- 3. The UI ---
|
| 89 |
+
with gr.Blocks(title="AI Question Paper Generator") as demo:
|
| 90 |
gr.Markdown("# π AI Question Paper Generator")
|
| 91 |
+
gr.Markdown("Powered by **Fine Tuned Llama 3.2 3B**")
|
| 92 |
gr.Markdown("β‘ Fast β’ π― Accurate β’ π Context-Aware")
|
| 93 |
|
| 94 |
with gr.Row():
|
|
|
|
| 128 |
outputs=output
|
| 129 |
)
|
| 130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
if __name__ == "__main__":
|
| 132 |
demo.launch()
|