Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,10 @@ def create_assistant(client):
|
|
13 |
name="Python Code Generator",
|
14 |
instructions="You are a Python programming language expert that generates Pylint-compliant code and explains it. Only execute code when explicitly asked to.",
|
15 |
model="gpt-4o",
|
16 |
-
tools=[
|
|
|
|
|
|
|
17 |
)
|
18 |
|
19 |
show_json("assistant", assistant)
|
@@ -127,6 +130,7 @@ gr.ChatInterface(
|
|
127 |
clear_btn="Clear",
|
128 |
retry_btn="Retry",
|
129 |
undo_btn="Undo",
|
|
|
130 |
examples=[
|
131 |
["Generate: NumPy/Pandas/Matplotlib & yfinance trading app", "sk-<BringYourOwn>"],
|
132 |
["Explain: r'^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\\W]).{8,}$'", "sk-<BringYourOwn>"],
|
|
|
13 |
name="Python Code Generator",
|
14 |
instructions="You are a Python programming language expert that generates Pylint-compliant code and explains it. Only execute code when explicitly asked to.",
|
15 |
model="gpt-4o",
|
16 |
+
tools=[
|
17 |
+
{"type": "code_interpreter"},
|
18 |
+
{"type": "retrieval"},
|
19 |
+
],
|
20 |
)
|
21 |
|
22 |
show_json("assistant", assistant)
|
|
|
130 |
clear_btn="Clear",
|
131 |
retry_btn="Retry",
|
132 |
undo_btn="Undo",
|
133 |
+
multimodal=True,
|
134 |
examples=[
|
135 |
["Generate: NumPy/Pandas/Matplotlib & yfinance trading app", "sk-<BringYourOwn>"],
|
136 |
["Explain: r'^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\\W]).{8,}$'", "sk-<BringYourOwn>"],
|