Spaces:
Runtime error
Runtime error
Commit
·
a60b832
1
Parent(s):
661b975
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 |
-
json_ = {"inputs": prompt[-
|
16 |
"parameters":
|
17 |
{
|
18 |
"top_p": float(top_p),
|
|
|
12 |
#Prints to debug the code
|
13 |
print(f"*****Inside text_generate - Prompt is :{prompt}")
|
14 |
max_tokens = 250
|
15 |
+
json_ = {"inputs": prompt[-85:],
|
16 |
"parameters":
|
17 |
{
|
18 |
"top_p": float(top_p),
|