bstraehle commited on
Commit
7060e87
·
verified ·
1 Parent(s): dd676c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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=250),
75
- #textbox=gr.Textbox(placeholder="Ask anything", value="First, execute with tools: Create a plot showing stock gain QTD for NVDA and AMD, x-axis is \"Day\" and y-axis is \"Gain %\". Second, show the code.", 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: Code to fine-tune model meta-llama/Meta-Llama-3.1-8B on dataset gretelai/synthetic_text_to_sql using QLoRA"],
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)"],