Spaces:
Sleeping
Sleeping
Update app (1).py
Browse files- app (1).py +11 -0
app (1).py
CHANGED
@@ -7,6 +7,17 @@ from transformers import pipeline
|
|
7 |
from transformers.utils import logging
|
8 |
logging.set_verbosity_error()
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
from helper import ignore_warnings
|
11 |
ignore_warnings()
|
12 |
|
|
|
7 |
from transformers.utils import logging
|
8 |
logging.set_verbosity_error()
|
9 |
|
10 |
+
from helper import summarize_predictions_natural_language, render_results_in_image
|
11 |
+
from tokenizers import Tokenizer, Encoding
|
12 |
+
from tokenizers import decoders
|
13 |
+
from tokenizers import models
|
14 |
+
from tokenizers import normalizers
|
15 |
+
from tokenizers import pre_tokenizers
|
16 |
+
from tokenizers import processors
|
17 |
+
import matplotlib.pyplot as plt
|
18 |
+
import requests
|
19 |
+
import inflect
|
20 |
+
from predictions import get_predictions
|
21 |
from helper import ignore_warnings
|
22 |
ignore_warnings()
|
23 |
|