Spaces:
Running
Running
gospacedev
commited on
Commit
•
5e53032
1
Parent(s):
a72a8a4
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def generate_response(history):
|
|
24 |
return tokenizer.batch_decode(reply_ids, skip_special_tokens=True)[0]
|
25 |
|
26 |
|
27 |
-
@app.route("/
|
28 |
def index():
|
29 |
if request.method == "POST":
|
30 |
global history
|
|
|
24 |
return tokenizer.batch_decode(reply_ids, skip_special_tokens=True)[0]
|
25 |
|
26 |
|
27 |
+
@app.route("/", methods=["GET", "POST"])
|
28 |
def index():
|
29 |
if request.method == "POST":
|
30 |
global history
|