Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -71,15 +71,15 @@ def chat(message, history, openai_api_key):
|
|
71 |
|
72 |
gr.ChatInterface(
|
73 |
fn=chat,
|
74 |
-
chatbot=gr.Chatbot(height=
|
75 |
-
|
76 |
title="Python Coding Assistant",
|
77 |
description=os.environ.get("DESCRIPTION"),
|
78 |
#clear_btn="Clear",
|
79 |
#retry_btn=None,
|
80 |
#undo_btn=None,
|
81 |
examples=[
|
82 |
-
["Generate:
|
83 |
["Explain: r\"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\\W]).{8,}$\""],
|
84 |
["Fix: x = [5, 2, 1, 3, 4]; print(x.sort())"],
|
85 |
["Optimize: x = []; for i in range(0, 10000): x.append(i)"],
|
|
|
71 |
|
72 |
gr.ChatInterface(
|
73 |
fn=chat,
|
74 |
+
chatbot=gr.Chatbot(height=600),
|
75 |
+
textbox=gr.Textbox(placeholder="Ask anything", container=False, scale=7),
|
76 |
title="Python Coding Assistant",
|
77 |
description=os.environ.get("DESCRIPTION"),
|
78 |
#clear_btn="Clear",
|
79 |
#retry_btn=None,
|
80 |
#undo_btn=None,
|
81 |
examples=[
|
82 |
+
["Generate: REST API for post-quantum encryption & decryption"],
|
83 |
["Explain: r\"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[\\W]).{8,}$\""],
|
84 |
["Fix: x = [5, 2, 1, 3, 4]; print(x.sort())"],
|
85 |
["Optimize: x = []; for i in range(0, 10000): x.append(i)"],
|