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 |
-
["Execute: First 25 Fibbonaci numbers"],
|
182 |
-
["Execute: Chart showing stock gain YTD for NVDA, MSFT, AAPL, and GOOG, x-axis is 'Day' and y-axis is 'YTD Gain %'"]
|
183 |
],
|
184 |
cache_examples=False,
|
185 |
).launch()
|
|
|
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 |
["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()
|