bstraehle commited on
Commit
5d83083
1 Parent(s): d7dab55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -160,7 +160,7 @@ def chat(message, history):
160
  download_link = ""
161
 
162
  if len(image_values) > 0:
163
- download_link = f"<br /><br />https://platform.openai.com/storage/files/{image_values[0]}"
164
 
165
  return f"{text_values[0]}{download_link}"
166
 
@@ -178,8 +178,8 @@ gr.ChatInterface(
178
  ["Explain: r\"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\\W]).{8,}$\""],
179
  ["Fix: x = [5, 2, 1, 3, 4]; print(x.sort())"],
180
  ["Optimize: x = []; for i in range(0, 10000): x.append(i)"],
181
- ["Generate and execute: First 25 Fibbonaci numbers"],
182
- ["Generate and execute: Chart showing stock gain YTD for NVDA, MSFT, AAPL, and GOOG, x-axis is 'Day' and y-axis is 'YTD Gain %'. Use mock data."]
183
  ],
184
  cache_examples=False,
185
  ).launch()
 
160
  download_link = ""
161
 
162
  if len(image_values) > 0:
163
+ download_link = f"<br />https://platform.openai.com/storage/files/{image_values[0]}"
164
 
165
  return f"{text_values[0]}{download_link}"
166
 
 
178
  ["Explain: r\"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\\W]).{8,}$\""],
179
  ["Fix: x = [5, 2, 1, 3, 4]; print(x.sort())"],
180
  ["Optimize: x = []; for i in range(0, 10000): x.append(i)"],
181
+ ["Generate: First 25 Fibbonaci numbers. Execute the code."],
182
+ ["Generate: Chart showing stock gain YTD for NVDA, MSFT, AAPL, and GOOG, x-axis is 'Day' and y-axis is 'YTD Gain %'. Execute the code using mock data."]
183
  ],
184
  cache_examples=False,
185
  ).launch()