This file contains 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 subprocess | |
import io | |
from flask_cors import CORS | |
from flask import Flask, request, render_template, jsonify | |
@app.route('/predict_api', methods=['GET', 'POST']) | |
def predict_classes(): | |
if request.method == 'GET': | |
return render_template('home.html', value = "Image") |
This file contains 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
echo "For macOS open this script file and check the comments!!!" | |
# FAST-AI ML for CODERS on your laptop using virtualenv | |
# Note: Your system must have python3.6 installed. | |
# Run this file using `bash install.sh` | |
sudo apt-get update | |
sudo apt-get python3-dev | |
sudo apt-get install python3-pip | |
# For macOS comment out the above three lines and uncomment the below given line and then run the file | |
# brew install python3-pip | |
echo"on macOS if the above command doesn't work open the script" |
This file contains 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
{'id': 1, 'meaning': 'become less in amount or intensity', 'word': 'abate'}, | |
{'id': 2, | |
'meaning': 'markedly different from an accepted form', | |
'word': 'aberrant'}, | |
{'id': 3, 'meaning': 'temporary cessation or suspension', 'word': 'abeyance'}, | |
{'id': 4, | |
'meaning': 'run away; usually includes taking something or somebody alone', | |
'word': 'abscond'}, | |
{'id': 5, | |
'meaning': 'sparing in consumption of especially food or drinks', |
This file contains 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
{'id': 1, 'meaning': 'become less in amount or intensity', 'word': 'abate'}, | |
{'id': 2, | |
'meaning': 'markedly different from an accepted form', | |
'word': 'aberrant'}, | |
{'id': 3, 'meaning': 'temporary cessation or suspension', 'word': 'abeyance'}, | |
{'id': 4, | |
'meaning': 'run away; usually includes taking something or somebody alone', | |
'word': 'abscond'}, | |
{'id': 5, | |
'meaning': 'sparing in consumption of especially food or drinks', |
This file contains 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
from urllib.request import urlopen | |
from bs4 import BeautifulSoup as BS | |
import pandas as pd | |
from urllib.parse import urlparse, urlsplit | |
from PIL import Image | |
website_page = 'http://nameofyourwebsite.com' | |
page = urlopen(website_page) | |
soup = BS(page) | |
soup |
This file contains 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
from urllib.request import urlopen | |
from bs4 import BeautifulSoup as BS | |
import pandas as pd | |
from urllib.parse import urlparse, urlsplit | |
from PIL import Image | |
website_page = 'http://nameofyourwebsite.com' | |
page = urlopen(website_page) | |
soup = BS(page) | |
soup |
This file contains 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
from urllib.request import urlopen | |
from bs4 import BeautifulSoup as BS | |
import pandas as pd | |
from urllib.parse import urlparse, urlsplit | |
from PIL import Image |
NewerOlder