bhlewis commited on
Commit
f9f1297
·
verified ·
1 Parent(s): b48711f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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, server_name="0.0.0.0", server_port=7860)
 
 
 
 
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}")