Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,15 @@ from langchain import LLMChain
|
|
| 8 |
from langchain_together import Together
|
| 9 |
import re
|
| 10 |
import json
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
def Summary_BART(text):
|
| 13 |
checkpoint = "sshleifer/distilbart-cnn-12-6"
|
|
|
|
| 8 |
from langchain_together import Together
|
| 9 |
import re
|
| 10 |
import json
|
| 11 |
+
import os
|
| 12 |
+
|
| 13 |
+
# Set the API key with double quotes
|
| 14 |
+
os.environ['TOGETHER_API_KEY'] = "d88cb7414e4039a84d2ed63f1b47daaaa4230c4c53a422045d8a30a9a3bc87d8"
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
|
| 21 |
def Summary_BART(text):
|
| 22 |
checkpoint = "sshleifer/distilbart-cnn-12-6"
|