Skip to content

Instantly share code, notes, and snippets.

View ngbala6's full-sized avatar
🏠
Data Scientist

Bala Murugan N G ngbala6

🏠
Data Scientist
View GitHub Profile
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
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>;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ngbala6
ngbala6 / Simplifygist.py
Last active December 11, 2021 23:58
Model Building
# 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