retvq commited on
Commit
5132517
Β·
verified Β·
1 Parent(s): 3be7efd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
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", theme=gr.themes.Soft(primary_hue="blue")) as demo:
90
  gr.Markdown("# πŸ“„ AI Question Paper Generator")
91
- gr.Markdown("Powered by **Llama 3.2 3B** via Hugging Face Inference API")
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()