Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,11 +3,11 @@ import gradio as gr
|
|
3 |
import torch
|
4 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
5 |
|
6 |
-
checkpoint="
|
7 |
|
8 |
|
9 |
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
10 |
-
model=AutoModelForSequenceClassification.from_pretrained(checkpoint)
|
11 |
answers=['Yes',"Doesn't matter","No"]
|
12 |
f=open("Questions.txt","a")
|
13 |
|
|
|
3 |
import torch
|
4 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
5 |
|
6 |
+
checkpoint="manuu01/DeBERTa-SeagullStory"
|
7 |
|
8 |
|
9 |
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
10 |
+
model=AutoModelForSequenceClassification.from_pretrained(checkpoint,torch_dtype=torch.float16)
|
11 |
answers=['Yes',"Doesn't matter","No"]
|
12 |
f=open("Questions.txt","a")
|
13 |
|