bstraehle commited on
Commit
fef57dd
·
verified ·
1 Parent(s): e70eb57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -72,20 +72,16 @@ def chat(message, history, openai_api_key):
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"),
78
- #clear_btn="Clear",
79
- #retry_btn=None,
80
- #undo_btn=None,
81
  examples=[
82
  ["Generate: REST API for post-quantum encryption & decryption"],
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 and show the code: Calculate the first 25 Fibbonaci numbers"],
87
- ["Execute with tools and show the code: Create a plot showing stock gain QTD for NVDA and AMD, x-axis is \"Day\" and y-axis is \"Gain %\""],
88
- ["Execute with tools and show the code: Get key announcements from latest OpenAI Dev Day and show the web references."]
89
  ],
90
  cache_examples=False,
91
  additional_inputs=[
 
72
  gr.ChatInterface(
73
  fn=chat,
74
  chatbot=gr.Chatbot(height=600),
 
75
  title="Python Coding Assistant",
76
  description=os.environ.get("DESCRIPTION"),
 
 
 
77
  examples=[
78
  ["Generate: REST API for post-quantum encryption & decryption"],
79
  ["Explain: r\"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\\W]).{8,}$\""],
80
  ["Fix: x = [5, 2, 1, 3, 4]; print(x.sort())"],
81
  ["Optimize: x = []; for i in range(0, 10000): x.append(i)"],
82
+ ["Execute: Calculate the first 25 Fibbonaci numbers"],
83
+ ["Execute with tools: Create a plot showing stock gain QTD for NVDA and AMD, x-axis is \"Day\" and y-axis is \"Gain %\""],
84
+ ["Execute with tools: Get key announcements from latest OpenAI Dev Day and show the web references."]
85
  ],
86
  cache_examples=False,
87
  additional_inputs=[