Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -119,10 +119,12 @@ def vote(data: gr.LikeData):
|
|
119 |
print("voted")
|
120 |
|
121 |
with gr.Blocks() as demo:
|
122 |
-
chatbot = gr.Chatbot(placeholder="<strong>Your Personal Yes-Man</strong><br>Ask Me Anything")
|
123 |
-
|
|
|
|
|
124 |
gr.ChatInterface(
|
125 |
-
chat,
|
126 |
chatbot=chatbot,
|
127 |
textbox=gr.Textbox(placeholder="Ask anything", container=False, scale=7),
|
128 |
title="Python Code Generator",
|
|
|
119 |
print("voted")
|
120 |
|
121 |
with gr.Blocks() as demo:
|
122 |
+
chatbot = gr.Chatbot(placeholder="<strong>Your Personal Yes-Man</strong><br>Ask Me Anything")
|
123 |
+
|
124 |
+
chatbot.like(vote, None, None)
|
125 |
+
|
126 |
gr.ChatInterface(
|
127 |
+
fn=chat,
|
128 |
chatbot=chatbot,
|
129 |
textbox=gr.Textbox(placeholder="Ask anything", container=False, scale=7),
|
130 |
title="Python Code Generator",
|