Spaces:
Runtime error
Runtime error
j-hartmann
commited on
Commit
•
9c7e834
1
Parent(s):
521a377
Update app.py
Browse files
app.py
CHANGED
@@ -3,13 +3,13 @@ import gradio as gr
|
|
3 |
import pandas as pd
|
4 |
import tempfile
|
5 |
import itertools
|
6 |
-
|
7 |
-
|
8 |
import numpy as np
|
9 |
from numpy import dot
|
10 |
from numpy.linalg import norm
|
11 |
import transformers
|
12 |
-
|
13 |
|
14 |
# compute dot product of inputs
|
15 |
# summary function - test for single gradio function interfrace
|
|
|
3 |
import pandas as pd
|
4 |
import tempfile
|
5 |
import itertools
|
6 |
+
# import required packages
|
7 |
+
import torch
|
8 |
import numpy as np
|
9 |
from numpy import dot
|
10 |
from numpy.linalg import norm
|
11 |
import transformers
|
12 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification, Trainer
|
13 |
|
14 |
# compute dot product of inputs
|
15 |
# summary function - test for single gradio function interfrace
|