CindyDelage commited on
Commit
05814ee
·
verified ·
1 Parent(s): 068bd8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -41,8 +41,8 @@ modified_prompt = (
41
  )
42
 
43
 
44
- # Create Alfred with all the tools
45
- alfred = CodeAgent(
46
  tools=[evaluate_consumption, evaluate_consumption_example, FrugalAI_methods],
47
  model=model,
48
  additional_authorized_imports=['os'],
@@ -57,7 +57,7 @@ with gr.Blocks(theme=gr.themes.Ocean()) as demo:
57
  with gr.Column(scale=1):
58
  image = gr.Image(value=Image.open("frugal.jpg"), label="Frugal Image")
59
  hello = gr.Interface(
60
- fn=alfred,
61
  inputs="text",
62
  outputs="text",
63
  title="Frugalize it!",
 
41
  )
42
 
43
 
44
+ # Create agent with all the tools
45
+ fruggy = CodeAgent(
46
  tools=[evaluate_consumption, evaluate_consumption_example, FrugalAI_methods],
47
  model=model,
48
  additional_authorized_imports=['os'],
 
57
  with gr.Column(scale=1):
58
  image = gr.Image(value=Image.open("frugal.jpg"), label="Frugal Image")
59
  hello = gr.Interface(
60
+ fn=fruggy,
61
  inputs="text",
62
  outputs="text",
63
  title="Frugalize it!",