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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -119,9 +119,11 @@ def vote(data: gr.LikeData):
119
  print("voted")
120
 
121
  with gr.Blocks() as demo:
 
 
122
  gr.ChatInterface(
123
  chat,
124
- chatbot=gr.Chatbot(height=300),
125
  textbox=gr.Textbox(placeholder="Ask anything", container=False, scale=7),
126
  title="Python Code Generator",
127
  description="Generate, explain, fix, optimize, document, test, help, ... Can execute code when asked to.",
@@ -139,7 +141,6 @@ with gr.Blocks() as demo:
139
  additional_inputs=[
140
  gr.Textbox("sk-", label="OpenAI API Key", type = "password"),
141
  ],
142
- ),
143
- chatbot.like(vote, None, None)
144
 
145
  demo.launch()
 
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",
129
  description="Generate, explain, fix, optimize, document, test, help, ... Can execute code when asked to.",
 
141
  additional_inputs=[
142
  gr.Textbox("sk-", label="OpenAI API Key", type = "password"),
143
  ],
144
+ )
 
145
 
146
  demo.launch()