bstraehle commited on
Commit
19bfc9a
1 Parent(s): 2ab2aec

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"\Download: 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
- ["Execute: First 25 Fibbonaci numbers. Show me the code."],
182
- ["Execute using mock data: Chart showing stock gain YTD for NVDA, MSFT, AAPL, and GOOG, x-axis is 'Day' and y-axis is 'YTD Gain %'. Show me the code."]
183
  ],
184
  cache_examples=False,
185
  ).launch()
 
160
  download_link = ""
161
 
162
  if len(image_values) > 0:
163
+ download_link = f"<p>Download: https://platform.openai.com/storage/files/{image_values[0]}</p>"
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. Show the code and execute it."],
182
+ ["Generate: Chart showing stock gain YTD for NVDA, MSFT, AAPL, and GOOG, x-axis is 'Day' and y-axis is 'YTD Gain %'. Show the code and execute it using mock data."]
183
  ],
184
  cache_examples=False,
185
  ).launch()