bstraehle commited on
Commit
3f12f24
1 Parent(s): da08bf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -159,14 +159,14 @@ gr.ChatInterface(
159
  textbox=gr.MultimodalTextbox(placeholder="Ask anything", container=False, scale=7),
160
  title="Python Code Generator",
161
  description="The assistant can generate code, explain, fix, optimize, document, test, and generally help with code. It can also execute code.",
162
- #examples=[
163
- # [{"text": "Generate: NumPy/Pandas/Matplotlib & yfinance trading app", "files": []}],
164
  # [{"text": "Explain: r\"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\\W]).{8,}$\"", "files": []}],
165
  # [{"text": "Fix: x = [5, 2, 1, 3, 4]; print(x.sort())", "files": []}],
166
  # [{"text": "Optimize: x = []; for i in range(0, 10000): x.append(i)", "files": []}],
167
  # [{"text": "Execute: First 25 Fibbonaci numbers", "files": []}],
168
  # [{"text": "Execute: Chart showing stock gain YTD for NVDA, MSFT, AAPL, and GOOG, x-axis is 'Day' and y-axis is 'YTD Gain %'", "files": []}],
169
- # ],
170
- #cache_examples=True,
171
  multimodal=True,
172
  ).launch()
 
159
  textbox=gr.MultimodalTextbox(placeholder="Ask anything", container=False, scale=7),
160
  title="Python Code Generator",
161
  description="The assistant can generate code, explain, fix, optimize, document, test, and generally help with code. It can also execute code.",
162
+ examples=[
163
+ [{"text": "Generate: NumPy/Pandas/Matplotlib & yfinance trading app", "files": []}],
164
  # [{"text": "Explain: r\"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\\W]).{8,}$\"", "files": []}],
165
  # [{"text": "Fix: x = [5, 2, 1, 3, 4]; print(x.sort())", "files": []}],
166
  # [{"text": "Optimize: x = []; for i in range(0, 10000): x.append(i)", "files": []}],
167
  # [{"text": "Execute: First 25 Fibbonaci numbers", "files": []}],
168
  # [{"text": "Execute: Chart showing stock gain YTD for NVDA, MSFT, AAPL, and GOOG, x-axis is 'Day' and y-axis is 'YTD Gain %'", "files": []}],
169
+ ],
170
+ cache_examples=True,
171
  multimodal=True,
172
  ).launch()