in vision/main.py [0:0]
def homepage():
# Create a Cloud Firestore client.
firestore_client = firestore.Client()
# Use the Cloud Firestore client to fetch information from Cloud Firestore about
# each photo.
photo_documents = list(firestore_client.collection(u'photos').get())
# Return a Jinja2 HTML template.
return render_template('homepage.html', photo_documents=photo_documents)