Commit 91923235 authored by SupunGurusinghe's avatar SupunGurusinghe

updated app

parent 047e8a77
import os
from flask import Flask, render_template, request, jsonify
from sinlingua.singlish.rulebased_transliterator import RuleBasedTransliterator
from sinlingua.grammar_rule.grammar_main import GrammarMain
# from sinlingua.summarizer.faster_longformer import FLongformerTextSummarizer
from sinlingua.sinhala_audio.audio_to_text import conversion
from flaskwebgui import FlaskUI, close_application
app = Flask(__name__)
app = Flask(__name__, template_folder="templates")
# ui = FlaskUI(app, width=500, height=500)
@app.route('/', methods=['GET', 'POST'])
......@@ -42,6 +43,11 @@ def summarize():
return render_template('summarize.html')
@app.route("/close", methods=["GET"])
def close_window():
close_application()
@app.route('/process', methods=['POST'])
def process():
input_text, audio_input = None, None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment