Spaces:
Running
Running
deveix
commited on
Commit
·
3152c36
1
Parent(s):
46710a4
load csv
Browse files- app/main.py +2 -4
app/main.py
CHANGED
@@ -14,7 +14,7 @@ import joblib
|
|
14 |
import librosa
|
15 |
import numpy as np
|
16 |
|
17 |
-
import pandas as pd
|
18 |
import numpy as np
|
19 |
import librosa.display
|
20 |
import soundfile as sf
|
@@ -123,9 +123,7 @@ def index_file(filepath):
|
|
123 |
# else:
|
124 |
# return {"error": "Failed to fetch data"}
|
125 |
|
126 |
-
|
127 |
-
import pandas as pd
|
128 |
-
df = pd.read_csv('/app/quran.csv')
|
129 |
|
130 |
def get_text_by_block_number(filepath, block_numbers):
|
131 |
""" Retrieve specific blocks from a file based on block numbers, where each block is separated by '\n\n'. """
|
|
|
14 |
import librosa
|
15 |
import numpy as np
|
16 |
|
17 |
+
import pandas as pd
|
18 |
import numpy as np
|
19 |
import librosa.display
|
20 |
import soundfile as sf
|
|
|
123 |
# else:
|
124 |
# return {"error": "Failed to fetch data"}
|
125 |
|
126 |
+
df = pd.read_csv('app/quran.csv')
|
|
|
|
|
127 |
|
128 |
def get_text_by_block_number(filepath, block_numbers):
|
129 |
""" Retrieve specific blocks from a file based on block numbers, where each block is separated by '\n\n'. """
|