Coder Social home page Coder Social logo

llsourcell / ai_startup_prototype Goto Github PK

View Code? Open in Web Editor NEW
368.0 368.0 264.0 1.4 MB

This is the code for "Watch Me Build an AI Startup" By Siraj Raval on Youtube

Jupyter Notebook 26.60% Python 43.67% CSS 1.19% HTML 27.39% Dockerfile 0.78% Makefile 0.37%

ai_startup_prototype's People

Contributors

binilj04 avatar llsourcell avatar subratasarkar32 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ai_startup_prototype's Issues

importError: cannot import name 'quote'

sing TensorFlow backend.
Traceback (most recent call last):
File "manage.py", line 4, in
from app import app, db, models
File "/home/harish/Desktop/my startup ideas and stuff/AI_Startup_Prototype-master (1)/AI_Startup_Prototype-master/flaskSaaS-master/app/init.py", line 46, in
from app import admin
File "/home/harish/Desktop/my startup ideas and stuff/AI_Startup_Prototype-master (1)/AI_Startup_Prototype-master/flaskSaaS-master/app/admin.py", line 7, in
from flask.ext.admin.contrib.fileadmin import FileAdmin
File "/home/harish/.local/lib/python3.6/site-packages/flask_admin/contrib/fileadmin/init.py", line 15, in
from flask_admin._compat import urljoin, as_unicode, quote
ImportError: cannot import name 'quote'

Tensorflow has no module

I am getting this error.
graph = tf.get_default_graph()
AttributeError: module 'tensorflow' has no attribute 'get_default_graph'

Webapp using imagenet weights for prediction instead of the new trained weights

The main.py is using the imagenet weights instead if the new trained model weights. In the function, upload file is not importing the model with the updated weights.

Look at the model being used -
model= ResNet50(weights='imagenet')

@app.route('/uploaded', methods = ['GET', 'POST']) def upload_file(): if request.method == 'POST': f = request.files['file'] path = os.path.join(app.config['UPLOAD_FOLDER'], f.filename) model= ResNet50(weights='imagenet') img = image.load_img(path, target_size=(224,224)) x = image.img_to_array(img) x = np.expand_dims(x, axis=0) x = preprocess_input(x) preds = model.predict(x) preds_decoded = decode_predictions(preds, top=3)[0] print(decode_predictions(preds, top=3)[0]) f.save(path) return render_template('uploaded.html', title='Success', predictions=preds_decoded, user_image=f.filename)

The Result is hardcorded!

return render_template('uploaded.html', title='Success', predictions=preds_decoded, user_image=f.filename), What if we can return response in json? that can be much better.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.