making changes to accomodate removing the pi user
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
#!/home/pi/BirdNET-Pi/birdnet/bin/python3
|
||||
import streamlit as st
|
||||
import pandas as pd
|
||||
import numpy as np
|
||||
@@ -9,7 +8,7 @@ from pathlib import Path
|
||||
import sqlite3
|
||||
from sqlite3 import Connection
|
||||
|
||||
URI_SQLITE_DB = "/home/pi/BirdNET-Pi/scripts/birds.db"
|
||||
URI_SQLITE_DB = "/home/*/BirdNET-Pi/scripts/birds.db"
|
||||
|
||||
st.set_page_config(layout='wide')
|
||||
|
||||
@@ -34,7 +33,7 @@ st.markdown("""
|
||||
col1,col2,col3 = st.columns([20,20,20])
|
||||
|
||||
col1.title('BirdNET-Pi', anchor=None)
|
||||
col2.image('/home/pi/BirdNET-Pi/homepage/images/bird.png')
|
||||
col2.image('/home/*/BirdNET-Pi/homepage/images/bird.png')
|
||||
col3.text('')
|
||||
|
||||
|
||||
@@ -46,7 +45,7 @@ def get_connection(path:str):
|
||||
|
||||
|
||||
# def load_data():
|
||||
# df1 = pd.read_csv('/home/pi/BirdNET-Pi/BirdDB.txt', sep=';')
|
||||
# df1 = pd.read_csv('/home/*/BirdNET-Pi/BirdDB.txt', sep=';')
|
||||
# return df1
|
||||
|
||||
def get_data(conn: Connection):
|
||||
@@ -179,6 +178,6 @@ st.plotly_chart(fig, use_container_width=True) #, config=config)
|
||||
#
|
||||
# extract_date=Date_Slider
|
||||
#
|
||||
# audio_file = open('/home/pi/BirdSongs/Extracted/By_Date/2022-03-22/Yellow-streaked_Greenbul/Yellow-streaked_Greenbul-77-2022-03-22-birdnet-15:04:28.mp3', 'rb')
|
||||
# audio_file = open('/home/*/BirdSongs/Extracted/By_Date/2022-03-22/Yellow-streaked_Greenbul/Yellow-streaked_Greenbul-77-2022-03-22-birdnet-15:04:28.mp3', 'rb')
|
||||
# audio_bytes = audio_file.read()
|
||||
# cols4.audio(audio_bytes, format='audio/mp3')
|
||||
# cols4.audio(audio_bytes, format='audio/mp3')
|
||||
|
||||
Reference in New Issue
Block a user