Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: gunicorn app:app
38 changes: 38 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import os
import sys
import numpy as np
from flask import Flask, render_template, request
from werkzeug.utils import secure_filename

from PIL import Image, ImageFile
from io import BytesIO
import matplotlib.pyplot as plt
import base64


app = Flask(__name__)

@app.route('/')
def home():
return render_template('index.html')



@app.route('/blog', methods=['GET','POST'])
def pred():
if request.method=='POST':
file = request.files['file']
# file: cantains all uploaded itmes
# conduct all the relevant operations HERE



return render_template('blog-single.html')






if __name__=='__main__':
app.run()
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
<div class="container">
<!--<p class="display-6 color-d">Hello, world!</p>-->
<h1 class="intro-title mb-4">Welcome</h1>
<button type="button" class="btn btn-dark mybutton"><a style="color:white;font-size:30px;" href="https://webqr.com/"> Scan </a> </button>

<button type="button" class="btn btn-dark mybutton"><a style="color:white;font-size:30px;"> Scan </a> </button>



Expand Down
Binary file added static/img1.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/upload5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading