Spaces:
Sleeping
Sleeping
JunzhaoSun
commited on
Commit
·
9254ad0
1
Parent(s):
3af6189
增加默认空值
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ def contrastiveSearch(prompts):
|
|
92 |
|
93 |
return text, 1
|
94 |
|
95 |
-
def predict(searchType, prompts):
|
96 |
if searchType == "贪心搜索":
|
97 |
return greedySearch(prompts)
|
98 |
elif searchType == "随机方法":
|
|
|
92 |
|
93 |
return text, 1
|
94 |
|
95 |
+
def predict(searchType, prompts='Who was Jim Henson ? Jim Henson was a'):
|
96 |
if searchType == "贪心搜索":
|
97 |
return greedySearch(prompts)
|
98 |
elif searchType == "随机方法":
|