Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,5 @@
|
|
| 1 |
-
"""
|
| 2 |
-
Smart MCQ Solver - live demo
|
| 3 |
-
Deep Learning & GenAI project, Devang Khirsaria (23f1001439), T2-2026.
|
| 4 |
-
|
| 5 |
-
This Space runs Model 2 from the project: the zero-shot NLI cross-encoder
|
| 6 |
-
`cross-encoder/nli-deberta-v3-small`. The prompt is treated as the premise and
|
| 7 |
-
each of the five options as a hypothesis; options are ranked by entailment
|
| 8 |
-
probability. No training and no fine-tuned weights are involved.
|
| 9 |
-
"""
|
| 10 |
|
|
|
|
| 11 |
import torch
|
| 12 |
import gradio as gr
|
| 13 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
+
import spaces
|
| 3 |
import torch
|
| 4 |
import gradio as gr
|
| 5 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|