We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd44b69 commit bb06a11Copy full SHA for bb06a11
app/main.py
@@ -11,6 +11,9 @@
11
@app.route("/", methods=["GET", "POST"])
12
def index():
13
prediction = None
14
+ if request.method == "GET":
15
+ return {"svc_Texpose is alive :) "}
16
+
17
if request.method == "POST":
18
input_text = request.form.get("text", "")
19
if input_text.strip(): # input if not empty then proceed
requirements.txt
@@ -5,3 +5,4 @@ torch
5
transformers
6
numpy
7
flask
8
+gdown
0 commit comments