Spaces:
Sleeping
Sleeping
Asankhaya Sharma
commited on
Commit
·
6f87c71
1
Parent(s):
3ed339f
update app.py
Browse files
app.py
CHANGED
@@ -36,8 +36,11 @@ def submit():
|
|
36 |
|
37 |
# prompt = "How long will it take for the poc to finish?"
|
38 |
# inputs = tokenizer(prompt, return_tensors="pt")
|
|
|
|
|
|
|
39 |
model, tokenizer = get_model()
|
40 |
-
generation_config = GenerationConfig(max_new_tokens=
|
41 |
num_beams=4,
|
42 |
early_stopping=True,
|
43 |
no_repeat_ngram_size=2,
|
|
|
36 |
|
37 |
# prompt = "How long will it take for the poc to finish?"
|
38 |
# inputs = tokenizer(prompt, return_tensors="pt")
|
39 |
+
|
40 |
+
max_tokens = st.sidebar.slider("Max Tokens", min_value = 16, max_value = 64, value = 32)
|
41 |
+
|
42 |
model, tokenizer = get_model()
|
43 |
+
generation_config = GenerationConfig(max_new_tokens=max_tokens,
|
44 |
num_beams=4,
|
45 |
early_stopping=True,
|
46 |
no_repeat_ngram_size=2,
|