unijoh commited on
Commit
1e1d6b5
·
verified ·
1 Parent(s): 9fcb0ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,11 +1,10 @@
1
  import gradio as gr
2
  import pandas as pd
3
- from datasets import load_dataset
4
 
5
  # Load and parse the CSV file from Hugging Face
6
  def load_data():
7
- dataset = load_dataset("unijoh/RAVNlex", split="train", download_mode="force_redownload")
8
- df = pd.DataFrame(dataset['data'])
9
  lemmas = {}
10
  current_lemma = None
11
 
 
1
  import gradio as gr
2
  import pandas as pd
 
3
 
4
  # Load and parse the CSV file from Hugging Face
5
  def load_data():
6
+ url = "https://huggingface.co/datasets/unijoh/RAVNlex/resolve/main/RAVNlex.csv"
7
+ df = pd.read_csv(url, delimiter='\t', encoding='iso-8859-10', names=["#ORTO", "#PPOS", "#PHON1", "#PHON2", "#COMM"])
8
  lemmas = {}
9
  current_lemma = None
10