Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,6 +61,7 @@ def infer(prompt,
|
|
| 61 |
return response
|
| 62 |
|
| 63 |
def getdevilsadvocate(text_inp):
|
|
|
|
| 64 |
|
| 65 |
text = prompt+"\nInput:"+text_inp + "\nOutput:"
|
| 66 |
resp = infer(text,seed=random.randint(0,100))
|
|
@@ -71,6 +72,7 @@ def getdevilsadvocate(text_inp):
|
|
| 71 |
parts = result.split("###")
|
| 72 |
topic = parts[0].strip()
|
| 73 |
topic="\n".join(topic.split('\n')[:3])
|
|
|
|
| 74 |
return(topic)
|
| 75 |
|
| 76 |
|
|
|
|
| 61 |
return response
|
| 62 |
|
| 63 |
def getdevilsadvocate(text_inp):
|
| 64 |
+
print(text_inp)
|
| 65 |
|
| 66 |
text = prompt+"\nInput:"+text_inp + "\nOutput:"
|
| 67 |
resp = infer(text,seed=random.randint(0,100))
|
|
|
|
| 72 |
parts = result.split("###")
|
| 73 |
topic = parts[0].strip()
|
| 74 |
topic="\n".join(topic.split('\n')[:3])
|
| 75 |
+
print(topic)
|
| 76 |
return(topic)
|
| 77 |
|
| 78 |
|