Spaces:
Runtime error
Runtime error
ghosthamlet
commited on
Commit
•
96c3078
1
Parent(s):
2d60535
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def text_generate(prompt, top_p=0.8, top_k=100, temperature=1.0, num_beams=3, re
|
|
12 |
#Prints to debug the code
|
13 |
print(f"*****Inside text_generate - Prompt is :{prompt}")
|
14 |
max_tokens = 250
|
15 |
-
max_prompt_len =
|
16 |
json_ = {"inputs": prompt[-max_prompt_len:],
|
17 |
"parameters":
|
18 |
{
|
|
|
12 |
#Prints to debug the code
|
13 |
print(f"*****Inside text_generate - Prompt is :{prompt}")
|
14 |
max_tokens = 250
|
15 |
+
max_prompt_len = 50
|
16 |
json_ = {"inputs": prompt[-max_prompt_len:],
|
17 |
"parameters":
|
18 |
{
|