Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,8 @@ def text_generate(prompt):
|
|
16 |
#Prints to debug the code
|
17 |
print(f"*****Inside text_generate - Prompt is :{prompt}")
|
18 |
|
19 |
-
data ={"inputs":prompt,
|
|
|
20 |
"top_p": 0.9,
|
21 |
"temp": 0.75}
|
22 |
try:
|
|
|
16 |
#Prints to debug the code
|
17 |
print(f"*****Inside text_generate - Prompt is :{prompt}")
|
18 |
|
19 |
+
data ={"inputs":prompt,
|
20 |
+
max_length=1024,
|
21 |
"top_p": 0.9,
|
22 |
"temp": 0.75}
|
23 |
try:
|