Update app.py
Browse files
app.py
CHANGED
@@ -43,12 +43,6 @@ def generater(message, history):
|
|
43 |
transferred_completion = utils.transfer_llm_completion(completion, message)
|
44 |
yield transferred_completion
|
45 |
|
46 |
-
def vote(data: gr.LikeData):
|
47 |
-
if data.liked:
|
48 |
-
return
|
49 |
-
else:
|
50 |
-
return
|
51 |
-
|
52 |
print("Create chatbot")
|
53 |
chatbot = gr.Chatbot()
|
54 |
print("Created chatbot")
|
@@ -65,7 +59,6 @@ iface = gr.ChatInterface(
|
|
65 |
)
|
66 |
|
67 |
with gr.Blocks() as demo:
|
68 |
-
chatbot.like(vote, None, None)
|
69 |
iface.render()
|
70 |
|
71 |
|
|
|
43 |
transferred_completion = utils.transfer_llm_completion(completion, message)
|
44 |
yield transferred_completion
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
print("Create chatbot")
|
47 |
chatbot = gr.Chatbot()
|
48 |
print("Created chatbot")
|
|
|
59 |
)
|
60 |
|
61 |
with gr.Blocks() as demo:
|
|
|
62 |
iface.render()
|
63 |
|
64 |
|