Chris4K commited on
Commit
b7bb43b
·
verified ·
1 Parent(s): 0518eba

Update controller.py

Browse files
Files changed (1) hide show
  1. controller.py +2 -1
controller.py CHANGED
@@ -9,6 +9,7 @@ def handle_submission(user_message, selected_tools, url_endpoint, document, imag
9
  log_response("url_endpoint \n {}".format(url_endpoint))
10
  log_response("url_endpoint \n {}".format(document))
11
  log_response("url_endpoint \n {}".format(image))
 
12
 
13
  agent = CustomHfAgent(
14
  url_endpoint=url_endpoint,
@@ -17,7 +18,7 @@ def handle_submission(user_message, selected_tools, url_endpoint, document, imag
17
  input_params={"max_new_tokens": 192},
18
  )
19
 
20
- response = agent.chat(user_message)
21
 
22
  log_response("Agent Response\n {}".format(response))
23
 
 
9
  log_response("url_endpoint \n {}".format(url_endpoint))
10
  log_response("url_endpoint \n {}".format(document))
11
  log_response("url_endpoint \n {}".format(image))
12
+ image = image
13
 
14
  agent = CustomHfAgent(
15
  url_endpoint=url_endpoint,
 
18
  input_params={"max_new_tokens": 192},
19
  )
20
 
21
+ response = agent.chat(user_message,document=document,image=image)
22
 
23
  log_response("Agent Response\n {}".format(response))
24