bstraehle commited on
Commit
c40c2ce
1 Parent(s): 6011a9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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
- chatbot.like(vote, None, None),
 
 
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",