Commit
·
30a731c
1
Parent(s):
ca8afb7
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def query(input_sentence,num,start):
|
|
13 |
data = json.dumps({"inputs":full_input,"options":{"wait_for_model":1},"parameters":{"max_length":len(full_input.split())+80,"min_length":len(full_input.split())+80},"temperature":0.65+0.05*i})
|
14 |
response = requests.request("POST", API_URL, headers=headers, data=data)
|
15 |
output=json.loads(response.content.decode("utf-8"))[0]['generated_text']
|
16 |
-
|
17 |
return '\n\n'.join([i for i in paraphrase_final[0:]])
|
18 |
title = "Paraphrasing with GPT-NEO"
|
19 |
description = "Gradio Demo for Paraphrasing with GPT-NEO. Simply add one line sentence in the Input. It is possible to control the start of output paraphrased sentences using optional Starting Point Input. If outputs are not satisfactory try to increase number of outputs"
|
|
|
13 |
data = json.dumps({"inputs":full_input,"options":{"wait_for_model":1},"parameters":{"max_length":len(full_input.split())+80,"min_length":len(full_input.split())+80},"temperature":0.65+0.05*i})
|
14 |
response = requests.request("POST", API_URL, headers=headers, data=data)
|
15 |
output=json.loads(response.content.decode("utf-8"))[0]['generated_text']
|
16 |
+
paraphrase_final.append( paraphrase_text.split('.',1)[0]+".")
|
17 |
return '\n\n'.join([i for i in paraphrase_final[0:]])
|
18 |
title = "Paraphrasing with GPT-NEO"
|
19 |
description = "Gradio Demo for Paraphrasing with GPT-NEO. Simply add one line sentence in the Input. It is possible to control the start of output paraphrased sentences using optional Starting Point Input. If outputs are not satisfactory try to increase number of outputs"
|