Spaces:
Build error
Build error
Upload 3 files
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def home():
|
|
| 29 |
# '''text --> prompt'''
|
| 30 |
|
| 31 |
def generate(text:str):
|
| 32 |
-
output = pipe(text,
|
| 33 |
|
| 34 |
#retuen the fgenerated text in json response
|
| 35 |
return{"output":output[0]['generate']}
|
|
|
|
| 29 |
# '''text --> prompt'''
|
| 30 |
|
| 31 |
def generate(text:str):
|
| 32 |
+
output = pipe(text, do_sample=True, temperature=0.7)
|
| 33 |
|
| 34 |
#retuen the fgenerated text in json response
|
| 35 |
return{"output":output[0]['generate']}
|