Spaces:
Sleeping
Sleeping
Update evaluate.py
Browse files- evaluate.py +17 -0
evaluate.py
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
def get_classification_report():
|
| 2 |
from sklearn.metrics import classification_report
|
| 3 |
import pandas as pd
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
from transformers import TFBertForSequenceClassification, BertTokenizer
|
| 3 |
+
import tensorflow as tf
|
| 4 |
+
import praw
|
| 5 |
+
import os
|
| 6 |
+
import pytesseract
|
| 7 |
+
from PIL import Image
|
| 8 |
+
import cv2
|
| 9 |
+
import numpy as np
|
| 10 |
+
import re
|
| 11 |
+
|
| 12 |
+
from evaluate import get_classification_report
|
| 13 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 14 |
+
import torch
|
| 15 |
+
from scipy.special import softmax
|
| 16 |
+
import matplotlib.pyplot as plt
|
| 17 |
+
import pandas as pd
|
| 18 |
def get_classification_report():
|
| 19 |
from sklearn.metrics import classification_report
|
| 20 |
import pandas as pd
|