Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ T5_model = export_and_get_onnx_model('jaimin/T5-Large')
|
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
-
def get_paraphrases(text, n_predictions=
|
| 26 |
para = []
|
| 27 |
r = requests.post(
|
| 28 |
url="https://hf.space/embed/jaimin/CWI/+/api/predict",
|
|
|
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
+
def get_paraphrases(text, n_predictions=1, top_k=50, max_length=256, device="cpu"):
|
| 26 |
para = []
|
| 27 |
r = requests.post(
|
| 28 |
url="https://hf.space/embed/jaimin/CWI/+/api/predict",
|