Spaces:
Running
Running
Update app.py
Browse files
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"
|
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 |
-
["
|
182 |
-
["
|
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()
|