Skip to content

Instantly share code, notes, and snippets.

View VGabby's full-sized avatar
💭
Yah

BachHoang VGabby

💭
Yah
View GitHub Profile
@VGabby
VGabby / kush.html
Last active October 31, 2021 14:47
post image to AI backend _ fastapi
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
let base64String
let data = new FormData()
let url = "http://13.212.36.151:8013/api/stream_predict"
$(document).ready(function () {
@VGabby
VGabby / pyscript.py
Created August 29, 2018 02:51 — forked from nhoffman/pyscript.py
Python script template
#!/usr/bin/env python
"""A simple python script template.
"""
from __future__ import print_function
import os
import sys
import argparse
@VGabby
VGabby / mnist_tfdata.py
Created August 27, 2018 07:18 — forked from datlife/mnist_tfdata.py
Training Keras model with tf.data
"""An example of how to use tf.Dataset in Keras Model"""
import tensorflow as tf # only work from tensorflow==1.9.0-rc1 and after
_EPOCHS = 5
_NUM_CLASSES = 10
_BATCH_SIZE = 128
def training_pipeline():
# #############
# Load Dataset
@VGabby
VGabby / test.ipynb
Created October 30, 2017 05:25
test
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.