Spaces:
Running
Running
Francisco Zanartu
commited on
Commit
•
11a765e
1
Parent(s):
6e311b6
update requirements, fix typo
Browse files- requirements.txt +2 -0
- utils/core.py +4 -4
requirements.txt
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
langchain==0.1.12
|
2 |
duckduckgo-search==5.1.0
|
|
|
3 |
transformers==4.38.2
|
|
|
4 |
|
5 |
# google-generativeai==0.3.2
|
6 |
# langchain==0.1.9
|
|
|
1 |
langchain==0.1.12
|
2 |
duckduckgo-search==5.1.0
|
3 |
+
text-generation==0.6.1
|
4 |
transformers==4.38.2
|
5 |
+
langchain-community==0.0.28
|
6 |
|
7 |
# google-generativeai==0.3.2
|
8 |
# langchain==0.1.9
|
utils/core.py
CHANGED
@@ -174,16 +174,16 @@ class HamburgerStyle:
|
|
174 |
# generate rebuttal
|
175 |
self.hamburger[0] = self.hamburger[0]._replace(content=misinformation)
|
176 |
self.hamburger[1] = self.hamburger[1]._replace(
|
177 |
-
content=self.generate_st_layer(misinformation).
|
178 |
)
|
179 |
self.hamburger[2] = self.hamburger[2]._replace(
|
180 |
-
content=self.generate_nd_layer(misinformation).
|
181 |
)
|
182 |
self.hamburger[3] = self.hamburger[3]._replace(
|
183 |
-
content=self.generate_rd_layer(misinformation).
|
184 |
)
|
185 |
self.hamburger[4] = self.hamburger[4]._replace(
|
186 |
-
content=self.generate_th_layer(misinformation).
|
187 |
)
|
188 |
|
189 |
# compose and format the string
|
|
|
174 |
# generate rebuttal
|
175 |
self.hamburger[0] = self.hamburger[0]._replace(content=misinformation)
|
176 |
self.hamburger[1] = self.hamburger[1]._replace(
|
177 |
+
content=self.generate_st_layer(misinformation).strip()
|
178 |
)
|
179 |
self.hamburger[2] = self.hamburger[2]._replace(
|
180 |
+
content=self.generate_nd_layer(misinformation).strip()
|
181 |
)
|
182 |
self.hamburger[3] = self.hamburger[3]._replace(
|
183 |
+
content=self.generate_rd_layer(misinformation).strip()
|
184 |
)
|
185 |
self.hamburger[4] = self.hamburger[4]._replace(
|
186 |
+
content=self.generate_th_layer(misinformation).strip()
|
187 |
)
|
188 |
|
189 |
# compose and format the string
|