bstraehle commited on
Commit
3514d89
·
verified ·
1 Parent(s): 4eff003

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -71,7 +71,7 @@ def chat(message, history, openai_api_key):
71
 
72
  gr.ChatInterface(
73
  fn=chat,
74
- chatbot=gr.Chatbot(height=400),
75
  #textbox=gr.Textbox(placeholder="Ask anything", container=False, scale=7),
76
  title="Python Coding Assistant",
77
  description=os.environ.get("DESCRIPTION"),
@@ -83,9 +83,9 @@ gr.ChatInterface(
83
  ["Explain: r\"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\\W]).{8,}$\""],
84
  ["Fix: x = [5, 2, 1, 3, 4]; print(x.sort())"],
85
  ["Optimize: x = []; for i in range(0, 10000): x.append(i)"],
86
- ["First, execute: Calculate the first 25 Fibbonaci numbers. Second, show the code."],
87
- ["First, execute with tools: Create a plot showing stock gain QTD for NVDA and AMD, x-axis is \"Day\" and y-axis is \"Gain %\". Second, show the code."],
88
- ["First, execute with tools: Get key announcements from latest OpenAI Dev Day. Second, show the web references."]
89
  ],
90
  cache_examples=False,
91
  additional_inputs=[
 
71
 
72
  gr.ChatInterface(
73
  fn=chat,
74
+ chatbot=gr.Chatbot(height=600),
75
  #textbox=gr.Textbox(placeholder="Ask anything", container=False, scale=7),
76
  title="Python Coding Assistant",
77
  description=os.environ.get("DESCRIPTION"),
 
83
  ["Explain: r\"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\\W]).{8,}$\""],
84
  ["Fix: x = [5, 2, 1, 3, 4]; print(x.sort())"],
85
  ["Optimize: x = []; for i in range(0, 10000): x.append(i)"],
86
+ ["Execute: Calculate the first 25 Fibbonaci numbers"],
87
+ ["Execute with tools: Create a plot showing stock gain QTD for NVDA and AMD, x-axis is \"Day\" and y-axis is \"Gain %\""],
88
+ ["Execute with tools: Get key announcements from latest OpenAI Dev Day and show the web references."]
89
  ],
90
  cache_examples=False,
91
  additional_inputs=[