Spaces:
Running
Running
Commit
·
15040ef
1
Parent(s):
996d266
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ app = Flask(__name__)
|
|
8 |
tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
|
9 |
model = GPT2LMHeadModel.from_pretrained('gpt2')
|
10 |
|
11 |
-
|
12 |
def paraphrase():
|
13 |
# Get the input text from the request
|
14 |
input_text = request.form.get('input_text')
|
|
|
8 |
tokenizer = GPT2Tokenizer.from_pretrained('gpt2')
|
9 |
model = GPT2LMHeadModel.from_pretrained('gpt2')
|
10 |
|
11 |
+
app.route('/paraphrase', methods=['POST'])
|
12 |
def paraphrase():
|
13 |
# Get the input text from the request
|
14 |
input_text = request.form.get('input_text')
|