Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@
|
|
13 |
# https://platform.openai.com/docs/assistants/tools
|
14 |
|
15 |
import gradio as gr
|
16 |
-
import
|
17 |
|
18 |
from openai import OpenAI
|
19 |
from utils import show_json
|
@@ -158,7 +158,7 @@ def chat(message, history):
|
|
158 |
gr.ChatInterface(
|
159 |
fn=chat,
|
160 |
chatbot=gr.Chatbot(height=350),
|
161 |
-
textbox=gr.
|
162 |
title="Python Code Generator",
|
163 |
description="The assistant can generate code, explain, fix, optimize, document, test, and generally help with code. It can also execute code.",
|
164 |
clear_btn="Clear",
|
|
|
13 |
# https://platform.openai.com/docs/assistants/tools
|
14 |
|
15 |
import gradio as gr
|
16 |
+
import openai, os, time
|
17 |
|
18 |
from openai import OpenAI
|
19 |
from utils import show_json
|
|
|
158 |
gr.ChatInterface(
|
159 |
fn=chat,
|
160 |
chatbot=gr.Chatbot(height=350),
|
161 |
+
textbox=gr.Textbox(placeholder="Ask anything", container=False, scale=7),
|
162 |
title="Python Code Generator",
|
163 |
description="The assistant can generate code, explain, fix, optimize, document, test, and generally help with code. It can also execute code.",
|
164 |
clear_btn="Clear",
|