duraad commited on
Commit
3de8f47
·
verified ·
1 Parent(s): 1e18480

Update src/pages/📈DatasetAnalysis.py

Browse files
src/pages/📈DatasetAnalysis.py CHANGED
@@ -4,11 +4,11 @@ import matplotlib.pyplot as plt
4
  from collections import Counter
5
  from wordcloud import WordCloud
6
  from matplotlib.font_manager import FontProperties
 
7
 
8
  st.set_page_config(page_title="Datasets Analysis", page_icon="👋", layout="wide")
9
 
10
-
11
- data100k = "dura-garage/nep-spell/datafiles/nep_spell_100k.csv"
12
 
13
  # Preparing datafrmae
14
  df = pd.read_csv(data100k)
@@ -62,7 +62,7 @@ for word, frequency in top_words:
62
  corpus[word] = frequency
63
 
64
  # Define the font file path
65
- font1 = "dura-garage/nep-spell/fonts/TiroDevanagariHindi-Regular.ttf"
66
 
67
  # Generate the word cloud
68
  wordcloud_most_common = WordCloud(
 
4
  from collections import Counter
5
  from wordcloud import WordCloud
6
  from matplotlib.font_manager import FontProperties
7
+ import os
8
 
9
  st.set_page_config(page_title="Datasets Analysis", page_icon="👋", layout="wide")
10
 
11
+ data100k = os.path.abspath('"dura-garage/nep-spell/datafiles/nep_spell_100k.csv"')
 
12
 
13
  # Preparing datafrmae
14
  df = pd.read_csv(data100k)
 
62
  corpus[word] = frequency
63
 
64
  # Define the font file path
65
+ font1 = os.path.abspath("dura-garage/nep-spell/fonts/TiroDevanagariHindi-Regular.ttf")
66
 
67
  # Generate the word cloud
68
  wordcloud_most_common = WordCloud(