Add "seed" menu in the Parameters tab

This commit is contained in:
wywywywy 2023-03-22 18:40:20 +00:00 committed by GitHub
parent 45b7e53565
commit 61346b88ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 33 additions and 19 deletions

View file

@ -32,6 +32,7 @@ params = {
'penalty_alpha': 0,
'length_penalty': 1,
'early_stopping': False,
'seed': -1,
}
# Input prompt
@ -54,6 +55,7 @@ response = requests.post(f"http://{server}:7860/run/textgen", json={
params['penalty_alpha'],
params['length_penalty'],
params['early_stopping'],
params['seed'],
]
}).json()