Spaces:
Paused
Paused
binary-husky
commited on
Commit
•
1ac2031
1
Parent(s):
86cd069
Update functional_crazy.py
Browse files- functional_crazy.py +2 -2
functional_crazy.py
CHANGED
@@ -8,10 +8,10 @@ fast_debug = False
|
|
8 |
|
9 |
def 自我程序解构简单案例(txt, top_p, temperature, chatbot, history, systemPromptTxt, WEB_PORT):
|
10 |
import time
|
11 |
-
from predict import
|
12 |
for i in range(5):
|
13 |
i_say = f'我给出一个数字,你给出该数字的平方。我给出数字:{i}'
|
14 |
-
gpt_say =
|
15 |
chatbot.append((i_say, gpt_say))
|
16 |
history.append(i_say)
|
17 |
history.append(gpt_say)
|
|
|
8 |
|
9 |
def 自我程序解构简单案例(txt, top_p, temperature, chatbot, history, systemPromptTxt, WEB_PORT):
|
10 |
import time
|
11 |
+
from predict import predict_no_ui
|
12 |
for i in range(5):
|
13 |
i_say = f'我给出一个数字,你给出该数字的平方。我给出数字:{i}'
|
14 |
+
gpt_say = predict_no_ui(inputs=i_say, top_p=top_p, temperature=temperature)
|
15 |
chatbot.append((i_say, gpt_say))
|
16 |
history.append(i_say)
|
17 |
history.append(gpt_say)
|