bstraehle commited on
Commit
dd676c4
·
verified ·
1 Parent(s): 17a78eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -72,7 +72,7 @@ def chat(message, history, openai_api_key):
72
  gr.ChatInterface(
73
  fn=chat,
74
  chatbot=gr.Chatbot(height=250),
75
- textbox=gr.Textbox(placeholder="Ask anything", value="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.", container=False, scale=7),
76
  title="Python Coding Assistant",
77
  description=os.environ.get("DESCRIPTION"),
78
  #clear_btn="Clear",
@@ -84,6 +84,7 @@ gr.ChatInterface(
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: Get key announcements from latest OpenAI Dev Day. Second, show the web references."]
88
  ],
89
  cache_examples=False,
 
72
  gr.ChatInterface(
73
  fn=chat,
74
  chatbot=gr.Chatbot(height=250),
75
+ #textbox=gr.Textbox(placeholder="Ask anything", value="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.", container=False, scale=7),
76
  title="Python Coding Assistant",
77
  description=os.environ.get("DESCRIPTION"),
78
  #clear_btn="Clear",
 
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,