Skip to content

Instantly share code, notes, and snippets.

View PravinVedurla's full-sized avatar
🏠
Working from home

Pravin Vedurla PravinVedurla

🏠
Working from home
View GitHub Profile
# -*-coding:utf-8-*-
import numpy as np
from PIL import Image
import sys
import json
import requests
import glob
_IMAGE_SIZE = 299
SERVER_URL = 'http://localhost:8501/v1/models/nsfw:predict'
@zuyu
zuyu / ubuntu-install-gcc-6
Last active February 13, 2025 13:16
Install gcc 6 on Ubuntu
sudo apt update && \
sudo apt install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
sudo apt update && \
sudo apt install gcc-6 g++-6 -y && \
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6 && \
gcc -v