Update app.py
Browse files
app.py
CHANGED
@@ -7,10 +7,8 @@ from transformers import AutoTokenizer, AutoModel
|
|
7 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
8 |
from sklearn.metrics.pairwise import cosine_similarity
|
9 |
import re
|
10 |
-
from collections import Counter
|
11 |
import spacy
|
12 |
import torch
|
13 |
-
from nltk.corpus import wordnet
|
14 |
import nltk
|
15 |
|
16 |
# Download WordNet data
|
@@ -167,4 +165,7 @@ iface = gr.Interface(
|
|
167 |
)
|
168 |
|
169 |
if __name__ == "__main__":
|
170 |
-
iface.launch(share=True
|
|
|
|
|
|
|
|
7 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
8 |
from sklearn.metrics.pairwise import cosine_similarity
|
9 |
import re
|
|
|
10 |
import spacy
|
11 |
import torch
|
|
|
12 |
import nltk
|
13 |
|
14 |
# Download WordNet data
|
|
|
165 |
)
|
166 |
|
167 |
if __name__ == "__main__":
|
168 |
+
local_url, share_url, _ = iface.launch(share=True)
|
169 |
+
print(f"Local URL: {local_url}")
|
170 |
+
if share_url:
|
171 |
+
print(f"Public URL: {share_url}")
|