Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -57,9 +57,9 @@ def chat(message, history):
|
|
57 |
|
58 |
# TODO: Handle multiple images and other file types
|
59 |
if len(image_values) > 0:
|
60 |
-
download_link = f"[Download](https://platform.openai.com/storage/files/{image_values[0]})"
|
61 |
|
62 |
-
return f"{'<hr>'.join(list(reversed(text_values))[1:])}
|
63 |
|
64 |
gr.ChatInterface(
|
65 |
fn=chat,
|
@@ -75,8 +75,8 @@ gr.ChatInterface(
|
|
75 |
["Explain: r\"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\\W]).{8,}$\""],
|
76 |
["Fix: x = [5, 2, 1, 3, 4]; print(x.sort())"],
|
77 |
["Optimize: x = []; for i in range(0, 10000): x.append(i)"],
|
78 |
-
["Execute: First 25 Fibbonaci numbers"],
|
79 |
-
["Execute with tools: Create a plot showing stock gain QTD for NVDA and AMD, x-axis is \"Day\" and y-axis is \"Gain %\""],
|
80 |
["Execute with tools: Get key announcements from latest OpenAI Dev Day"]
|
81 |
],
|
82 |
cache_examples=True,
|
|
|
57 |
|
58 |
# TODO: Handle multiple images and other file types
|
59 |
if len(image_values) > 0:
|
60 |
+
download_link = f"<hr>[Download](https://platform.openai.com/storage/files/{image_values[0]})"
|
61 |
|
62 |
+
return f"{'<hr>'.join(list(reversed(text_values))[1:])}{download_link}"
|
63 |
|
64 |
gr.ChatInterface(
|
65 |
fn=chat,
|
|
|
75 |
["Explain: r\"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\\W]).{8,}$\""],
|
76 |
["Fix: x = [5, 2, 1, 3, 4]; print(x.sort())"],
|
77 |
["Optimize: x = []; for i in range(0, 10000): x.append(i)"],
|
78 |
+
["Execute and show the code: First 25 Fibbonaci numbers"],
|
79 |
+
["Execute with tools and show the code: Create a plot showing stock gain QTD for NVDA and AMD, x-axis is \"Day\" and y-axis is \"Gain %\""],
|
80 |
["Execute with tools: Get key announcements from latest OpenAI Dev Day"]
|
81 |
],
|
82 |
cache_examples=True,
|