seyia92coding
commited on
Commit
•
be9ff75
1
Parent(s):
cf8a101
adding fuzzywuzzy
Browse files- hugging_face_demo_v1.py +3 -10
hugging_face_demo_v1.py
CHANGED
@@ -1,12 +1,4 @@
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
-
"""Hugging Face Demo V1.ipynb
|
3 |
-
|
4 |
-
Automatically generated by Colaboratory.
|
5 |
-
|
6 |
-
Original file is located at
|
7 |
-
https://colab.research.google.com/drive/1UPgdrPyLAvEWpJifn7Y6eblkiM2yc0_3
|
8 |
-
"""
|
9 |
-
|
10 |
import pandas as pd
|
11 |
import numpy as np
|
12 |
import re
|
@@ -14,10 +6,11 @@ import itertools
|
|
14 |
import matplotlib.pyplot as plt
|
15 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
16 |
from sklearn.metrics.pairwise import linear_kernel
|
17 |
-
|
|
|
|
|
18 |
from fuzzywuzzy import fuzz
|
19 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
20 |
-
!pip install gradio
|
21 |
import gradio as gr
|
22 |
|
23 |
from datasets import load_dataset
|
|
|
1 |
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
import pandas as pd
|
3 |
import numpy as np
|
4 |
import re
|
|
|
6 |
import matplotlib.pyplot as plt
|
7 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
8 |
from sklearn.metrics.pairwise import linear_kernel
|
9 |
+
|
10 |
+
from huggingface_hub import upload_file
|
11 |
+
#fuzz = upload_file(path_in_repo="fuzz.py")
|
12 |
from fuzzywuzzy import fuzz
|
13 |
from sklearn.feature_extraction.text import TfidfVectorizer
|
|
|
14 |
import gradio as gr
|
15 |
|
16 |
from datasets import load_dataset
|