ysharma HF Staff commited on
Commit
33279b7
·
1 Parent(s): baba8a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -23,11 +23,15 @@ def chat_with_interpreter(message, history=[]):
23
  return output
24
 
25
  openai_api_key = gr.Textbox(label='OpenAI API Key', intercative=True)
26
-
 
 
 
 
27
  demo = gr.ChatInterface(fn=chat_with_interpreter,
28
  title="Open-Interpreter Gradio ChatInterface",
29
  description="Open Interpreter lets LLMs run code (Python, Javascript, Shell, and more) locally",
30
- examples=["what is 2+2?", "Can you solve for x: 10x -65=0?", "What are top 10 headlines from BBC from last week?"],
31
  clear_btn=None,
32
  retry_btn=None,
33
  undo_btn=None,
 
23
  return output
24
 
25
  openai_api_key = gr.Textbox(label='OpenAI API Key', intercative=True)
26
+ examples=[["what is 2+2?"],
27
+ ["Can you solve for x: 10x -65=0?"],
28
+ ["What are top 10 headlines from BBC from last week?"]
29
+ ],
30
+
31
  demo = gr.ChatInterface(fn=chat_with_interpreter,
32
  title="Open-Interpreter Gradio ChatInterface",
33
  description="Open Interpreter lets LLMs run code (Python, Javascript, Shell, and more) locally",
34
+ examples=examples,
35
  clear_btn=None,
36
  retry_btn=None,
37
  undo_btn=None,