Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -22,6 +22,7 @@ def generate(text:str):
|
|
22 |
## use the pipeline to generate text from given input text
|
23 |
print("Recieved prompt "+str(text))
|
24 |
output= llm(text, max_tokens=1000)
|
|
|
25 |
## return the generate text in Json reposne
|
26 |
return {"output":output["choices"][0]["text"]}
|
27 |
|
|
|
22 |
## use the pipeline to generate text from given input text
|
23 |
print("Recieved prompt "+str(text))
|
24 |
output= llm(text, max_tokens=1000)
|
25 |
+
print(output["choices"][0]["text"])
|
26 |
## return the generate text in Json reposne
|
27 |
return {"output":output["choices"][0]["text"]}
|
28 |
|