This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Importing Libraries | |
import pandas as pd | |
from sklearn.ensemble import RandomForestRegressor | |
from sklearn.impute import SimpleImputer | |
from collections import Counter | |
from category_encoders import TargetEncoder | |
from sklearn.metrics import mean_squared_error | |
import numpy as np | |
from xgboost import XGBRegressor | |
from sklearn.model_selection import train_test_split |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream ws-backend { | |
server <your local ip eg. 192.168.6.418:12345>; # this should be your application running in ip and port | |
} | |
server { | |
listen 9000 ssl; # this port will listen, if you don't have ssl, remove ssl word | |
server_name <domain name or ip eg. 192.168.6.418 or example.bala.com>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import streamlit as st | |
st.title("Hello Captain") | |
file_to_be_uploaded = st.file_uploader("Choose a file", type=['MP3', 'WAV]) | |
RAWDATAPATH = "path to save the file" | |
def save_uploadedfile(uploadedfile): | |
global RAWDATAPATH |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cv2 | |
import pandas as pd | |
w =48 | |
h = 48 | |
# Load image | |
img = cv2.imread('1_0.jpg',0) |
NewerOlder