Skip to content

Instantly share code, notes, and snippets.

with apache_beam.Pipeline(options=options) as p:
rows = (
p |
ReadFromText(input_filename) |
apache_beam.ParDo(Split())
)
@huangrh
huangrh / web.py
Created March 3, 2021 05:10 — forked from CognitiveDave/web.py
A python flask backend
from flask import Flask, render_template, g, jsonify, request, redirect, url_for, session, flash
from gensim import corpora
import os
app = Flask(__name__,
static_folder = "./dist/static",
template_folder = "./dist")
@app.route("/home")
def hello():
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.