Skip to content

Commit

Permalink
* Generate less tokens, speed is improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Doron Adler committed May 31, 2021
1 parent 8f1358c commit 6bd600c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h2 dir="rtl" class="my-2 mx-lg-2">מחולל הגדרות נוֹנְסֵנְס
<form dir="rtl" class="md-form" style="color: #757575;">
<div dir="rtl" class="d-flex justify-content-end"></div>
<textarea dir="rtl" name="text_in" class="form-control md-textarea" rows="1" id="textarea_in" autofocus
placeholder=".רשמו פה משהו כמו תחילת הגדרה של מונח, שם מלא (מומלץ) וכדומה. אפשר גם להשאיר ריק ולהיות מופתעים"
placeholder="רשמו פה משהו כמו תחילת הגדרה של מונח, שם מלא (מומלץ) וכדומה"
onkeypress="process(event, this)"></textarea>
<button dir="rtl" class="btn btn-outline-primary waves-effect" type="submit">צור נונסנס</button>
</div>
Expand Down
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from flask import Flask, request, send_file
from model import extend

maxNumOfTokensToExtend = 128
maxNumOfTokensToExtend = 72

app = Flask(__name__)

Expand All @@ -23,7 +23,7 @@ def leket():

@app.route('/checkpoint')
def checkpoint():
return ("20210531-1630")
return ("20210531-1838")
#return send_file('hebrew-gpt_neo-tiny/counter', mimetype='text/plain')

@app.route('/', methods=['GET', 'POST'])
Expand All @@ -35,7 +35,7 @@ def index():
if len(data) > 0:
title_data = str(data)
else:
title_data = ""
title_data = "מחולל הנונסנס הוא"

return extend(title_data,maxNumOfTokensToExtend)

Expand Down

0 comments on commit 6bd600c

Please sign in to comment.