Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
|
9 |
import gradio as gr
|
10 |
|
11 |
-
import json
|
12 |
|
13 |
from assistants import (
|
14 |
openai_client,
|
@@ -122,14 +122,14 @@ gr.ChatInterface(
|
|
122 |
textbox=gr.Textbox(placeholder="Ask anything", container=False, scale=7),
|
123 |
title="Python Coding Assistant",
|
124 |
description=(
|
125 |
-
"<p>The assistant can <b>generate, explain, fix, optimize,</b> and <b>document
|
126 |
"create unit test cases,</b> and <b>answer general coding-related questions.</b> "
|
127 |
"It can also <b>execute code</b>. "
|
128 |
"The assistant has access to tools, including a code interpreter and custom function calling: "
|
129 |
"a <b>today tool</b> (to get current date), "
|
130 |
"a <b><a href='https://pypi.org/project/yfinance/'>yfinance</a> download tool</b> (to get stock data), "
|
131 |
"and a <b><a href='https://tavily.com/'>tavily</a> search tool</b> (to perform web search). "
|
132 |
-
"The features are showcased
|
133 |
"<p>The app uses the asynchronous stateful <b>OpenAI Assistants API</b> (Python SDK). For examples of the synchronous stateless <b>OpenAI "
|
134 |
"Chat Completion API</b> (REST API) see this <a href='https://www.postman.com/bstraehle/workspace/generative-ai-llm-rest-apis/collection/7643177-b1b59a8b-824a-4af2-8675-661ad26aa745'>Postman collection</a>.</p>"
|
135 |
),
|
|
|
8 |
|
9 |
import gradio as gr
|
10 |
|
11 |
+
import json, os
|
12 |
|
13 |
from assistants import (
|
14 |
openai_client,
|
|
|
122 |
textbox=gr.Textbox(placeholder="Ask anything", container=False, scale=7),
|
123 |
title="Python Coding Assistant",
|
124 |
description=(
|
125 |
+
"<p>The assistant can <b>generate, explain, fix, optimize,</b> and <b>document code, "
|
126 |
"create unit test cases,</b> and <b>answer general coding-related questions.</b> "
|
127 |
"It can also <b>execute code</b>. "
|
128 |
"The assistant has access to tools, including a code interpreter and custom function calling: "
|
129 |
"a <b>today tool</b> (to get current date), "
|
130 |
"a <b><a href='https://pypi.org/project/yfinance/'>yfinance</a> download tool</b> (to get stock data), "
|
131 |
"and a <b><a href='https://tavily.com/'>tavily</a> search tool</b> (to perform web search). "
|
132 |
+
"The features are showcased in the examples below.</p>"
|
133 |
"<p>The app uses the asynchronous stateful <b>OpenAI Assistants API</b> (Python SDK). For examples of the synchronous stateless <b>OpenAI "
|
134 |
"Chat Completion API</b> (REST API) see this <a href='https://www.postman.com/bstraehle/workspace/generative-ai-llm-rest-apis/collection/7643177-b1b59a8b-824a-4af2-8675-661ad26aa745'>Postman collection</a>.</p>"
|
135 |
),
|