dlimeng commited on
Commit
ca45251
·
1 Parent(s): f3ffe2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def execute_code(code):
27
 
28
  def gpt_inference(base_url, model, openai_key, prompt):
29
 
30
- newprompt = f'Write Python code that does the following: \n\n{prompt}\n\nNote, the code is going to be executed in a Jupyter Python kernel.\n\nLast instruction, and this is the most important, just return code. No other outputs, as your full response will directly be executed in the kernel.'
31
 
32
  data = {
33
  "model": model,
 
27
 
28
  def gpt_inference(base_url, model, openai_key, prompt):
29
 
30
+ newprompt = f'Write Python code that does the following: \n\n{prompt}\n\nNote, the code is going to be executed in a Jupyter Python kernel. The code should create a matplotlib figure and assign it to a variable named "fig". The "fig" variable will be used for further processing.\n\nLast instruction, and this is the most important, just return code. No other outputs, as your full response will directly be executed in the kernel.'
31
 
32
  data = {
33
  "model": model,