Spaces:
Sleeping
Sleeping
code refactoring
Browse files
app.py
CHANGED
@@ -1,16 +1,3 @@
|
|
1 |
-
# import gradio as gr
|
2 |
-
# from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
3 |
-
# import torch
|
4 |
-
|
5 |
-
# device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
6 |
-
|
7 |
-
# model_id = "Rahmat82/DistilBERT-finetuned-on-emotion"
|
8 |
-
# tokenizer = AutoTokenizer.from_pretrained(model_id, return_tensors="pt", use_fast=True)
|
9 |
-
# model = AutoModelForSequenceClassification.from_pretrained(model_id)
|
10 |
-
# model.to(device)
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
import gradio as gr
|
15 |
from transformers import pipeline, AutoTokenizer
|
16 |
from optimum.onnxruntime import ORTModelForSequenceClassification
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline, AutoTokenizer
|
3 |
from optimum.onnxruntime import ORTModelForSequenceClassification
|