Update app.py
Browse files
app.py
CHANGED
|
@@ -10,17 +10,18 @@ from gradio.themes.utils import colors, fonts, sizes
|
|
| 10 |
|
| 11 |
import spaces
|
| 12 |
import torch
|
| 13 |
-
from transformers import AutoTokenizer, AutoModelForSequenceClassification, AutoModelForTokenClassification, pipeline
|
| 14 |
import os
|
|
|
|
| 15 |
import colorsys
|
| 16 |
-
import matplotlib.pyplot as plt
|
| 17 |
-
import plotly.graph_objects as go
|
| 18 |
-
from typing import Tuple
|
| 19 |
-
import plotly.io as pio
|
| 20 |
|
|
|
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
from wordcloud import WordCloud
|
| 23 |
-
|
| 24 |
|
| 25 |
def hex_to_rgb(hex_color: str) -> tuple[int, int, int]:
|
| 26 |
hex_color = hex_color.lstrip('#')
|
|
|
|
| 10 |
|
| 11 |
import spaces
|
| 12 |
import torch
|
|
|
|
| 13 |
import os
|
| 14 |
+
import io
|
| 15 |
import colorsys
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
import numpy as np
|
| 18 |
|
| 19 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification, AutoModelForTokenClassification, pipeline
|
| 20 |
+
|
| 21 |
+
import matplotlib.pyplot as plt
|
| 22 |
+
import plotly.graph_objects as go
|
| 23 |
from wordcloud import WordCloud
|
| 24 |
+
|
| 25 |
|
| 26 |
def hex_to_rgb(hex_color: str) -> tuple[int, int, int]:
|
| 27 |
hex_color = hex_color.lstrip('#')
|