Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,12 +23,12 @@ def change_conv():
|
|
23 |
chatbot.chat(init_prompt)
|
24 |
chatbot.cookies = {}
|
25 |
|
26 |
-
def main(
|
27 |
global n_conv
|
28 |
# if(n_conv > 3):
|
29 |
# n_conv = 0
|
30 |
# change_conv(chatbot)
|
31 |
-
information = retrieval.predict(
|
32 |
answer=chat_client.predict(
|
33 |
"Howdy!",
|
34 |
"new.json",
|
|
|
23 |
chatbot.chat(init_prompt)
|
24 |
chatbot.cookies = {}
|
25 |
|
26 |
+
def main(text):
|
27 |
global n_conv
|
28 |
# if(n_conv > 3):
|
29 |
# n_conv = 0
|
30 |
# change_conv(chatbot)
|
31 |
+
information = retrieval.predict(text, api_name = "/predict")
|
32 |
answer=chat_client.predict(
|
33 |
"Howdy!",
|
34 |
"new.json",
|