cafierom commited on
Commit
03c4ee2
·
verified ·
1 Parent(s): 3b5da49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -88,6 +88,7 @@ with gr.Blocks() as imgsmiles:
88
  - Black on white iamges work best
89
  """)
90
 
 
91
  with gr.Row():
92
  inputs=gr.Image(type="filepath")
93
  with gr.Column():
@@ -99,6 +100,6 @@ with gr.Blocks() as imgsmiles:
99
  agent_button = gr.Button("Agent use only")
100
 
101
  submit_button.click(make_smiles, [inputs], [text_out, img_out])
102
- agent_button.click(agent_make_smiles, ['False', inputs], [text_out, img_out])
103
 
104
  imgsmiles.launch(mcp_server=True, share=True)
 
88
  - Black on white iamges work best
89
  """)
90
 
91
+ agent_flag_choice = gr.Radio(choices = ['True', 'False'],label="Are you an Agent?", interactive=True, value='False', scale = 2)
92
  with gr.Row():
93
  inputs=gr.Image(type="filepath")
94
  with gr.Column():
 
100
  agent_button = gr.Button("Agent use only")
101
 
102
  submit_button.click(make_smiles, [inputs], [text_out, img_out])
103
+ agent_button.click(agent_make_smiles, [agent_flag_choice, inputs], [text_out, img_out])
104
 
105
  imgsmiles.launch(mcp_server=True, share=True)