applied black
This commit is contained in:
parent
e051ef6cc4
commit
e505334566
@ -1,19 +1,19 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import traceback
|
|
||||||
|
from flask import Flask, request, jsonify
|
||||||
|
from pdf2image import pdf2image
|
||||||
|
|
||||||
from fb_detr.locations import DATA_DIR
|
from fb_detr.locations import DATA_DIR
|
||||||
from fb_detr.locations import TORCH_HOME
|
from fb_detr.locations import TORCH_HOME
|
||||||
from fb_detr.predictor import Predictor
|
from fb_detr.predictor import Predictor
|
||||||
from waitress import serve
|
|
||||||
from flask import Flask, request, jsonify
|
|
||||||
from pdf2image import pdf2image
|
|
||||||
from fb_detr.utils.config import read_config
|
from fb_detr.utils.config import read_config
|
||||||
|
|
||||||
|
|
||||||
def suppress_userwarnings():
|
def suppress_userwarnings():
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
warnings.filterwarnings("ignore")
|
warnings.filterwarnings("ignore")
|
||||||
|
|
||||||
|
|
||||||
@ -61,7 +61,6 @@ def run_server(resume):
|
|||||||
|
|
||||||
@app.route("/", methods=["POST"])
|
@app.route("/", methods=["POST"])
|
||||||
def predict_request():
|
def predict_request():
|
||||||
|
|
||||||
def inner():
|
def inner():
|
||||||
|
|
||||||
pdf = request.data
|
pdf = request.data
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user