Spaces:
Sleeping
Sleeping
Enrico Iannucci
commited on
Commit
·
03f9175
1
Parent(s):
00f6f9d
Sostituito modello multi-class con versione ita.
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def multi_classification(text):
|
|
| 17 |
try:
|
| 18 |
return multi(text)
|
| 19 |
except:
|
| 20 |
-
raise gr.Error('
|
| 21 |
else:
|
| 22 |
raise gr.Error('Il testo è obbligatorio!')
|
| 23 |
|
|
@@ -52,8 +52,8 @@ with gr.Blocks() as demo:
|
|
| 52 |
binary_classification_button = gr.Button("Analizza")
|
| 53 |
with gr.Tab("Review Classification"):
|
| 54 |
gr.Markdown("""
|
| 55 |
-
Inviato un testo
|
| 56 |
-
'
|
| 57 |
""")
|
| 58 |
with gr.Row(equal_height=True):
|
| 59 |
with gr.Column():
|
|
|
|
| 17 |
try:
|
| 18 |
return multi(text)
|
| 19 |
except:
|
| 20 |
+
raise gr.Error('La lingua del testo non corrisponde alla lingua del modello!')
|
| 21 |
else:
|
| 22 |
raise gr.Error('Il testo è obbligatorio!')
|
| 23 |
|
|
|
|
| 52 |
binary_classification_button = gr.Button("Analizza")
|
| 53 |
with gr.Tab("Review Classification"):
|
| 54 |
gr.Markdown("""
|
| 55 |
+
Inviato un testo, il servizio classifica lo stesso come:\n
|
| 56 |
+
'Economia', 'Politica', 'Scienza_e_tecnica', 'Sport', 'Storia'
|
| 57 |
""")
|
| 58 |
with gr.Row(equal_height=True):
|
| 59 |
with gr.Column():
|
data/model/multi-classification.h5
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b15c9ea74c7ada4e04ce230069bcfa654d74c0ec5b057e2897c2ebf9fe02c2c6
|
| 3 |
+
size 16224712
|
data/tokenizer/multi-classification-tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e8d7cbb6eeb9b529b0eb53e230d42356eae15cd3c07ee9f9f5c32352d59034e
|
| 3 |
+
size 4289059
|