Update app.py
Browse files
app.py
CHANGED
@@ -1,24 +1,8 @@
|
|
1 |
-
# -*- coding: utf-8 -*-
|
2 |
-
"""app.ipynb
|
3 |
-
|
4 |
-
Automatically generated by Colab.
|
5 |
-
|
6 |
-
Original file is located at
|
7 |
-
https://colab.research.google.com/drive/1740ajnCP_JU3oCXfVpmvKcaHdtlYWp9S
|
8 |
-
"""
|
9 |
-
|
10 |
-
!pip install gradio
|
11 |
-
!pip install transformers
|
12 |
-
!pip install spacy
|
13 |
import gradio as gr
|
14 |
import re
|
15 |
import spacy
|
16 |
from transformers import pipeline
|
17 |
|
18 |
-
!pip install unidecode
|
19 |
-
|
20 |
-
from unidecode import unidecode
|
21 |
-
|
22 |
# Load spaCy's English model
|
23 |
nlp = spacy.load("en_core_web_sm")
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import re
|
3 |
import spacy
|
4 |
from transformers import pipeline
|
5 |
|
|
|
|
|
|
|
|
|
6 |
# Load spaCy's English model
|
7 |
nlp = spacy.load("en_core_web_sm")
|
8 |
|