Update app.py
Browse files
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 |
-
|
8 |
-
df = pd.
|
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 |
|