File size: 1,210 Bytes
92ba605
 
 
 
 
 
 
 
666fb5d
92ba605
 
666fb5d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
title: Answer Grading App
emoji: πŸ“Š
colorFrom: pink
colorTo: green
sdk: docker
pinned: false
license: apache-2.0
app_port: 7860
---

# Answer Grading App

This is an AI-powered answer grading application that can grade student answers using multiple similarity metrics and LLM-based scoring.

## Features

- Support for PDF and CSV input formats
- Multiple similarity metrics:
  - TF-IDF scoring
  - Semantic similarity
  - Word-level similarity
  - LLM-based scoring
- Handwritten text recognition (HTR) support
- Rate limiting and CORS protection
- Comprehensive logging

## Usage

1. Upload your query file (text file with questions)
2. Choose input format (PDF or CSV)
3. Upload answer files (PDFs or CSV)
4. Get graded results

## API Endpoints

- `/`: Main interface
- `/compute_answers`: Process and generate answers
- `/compute_marks`: Calculate marks for student answers
- `/check_logs`: View application logs

## Environment Variables

- `PORT`: Server port (default: 7860)
- `HF_HOME`: Hugging Face cache directory
- `GENSIM_DATA_DIR`: Gensim data directory

## Rate Limits

- 200 requests per day
- 50 requests per hour

## Dependencies

See `requirements.txt` for full list of dependencies.