Update custom_agent.py
Browse files- custom_agent.py +4 -0
custom_agent.py
CHANGED
@@ -6,6 +6,10 @@ import requests
|
|
6 |
import time
|
7 |
from transformers import Agent
|
8 |
|
|
|
|
|
|
|
|
|
9 |
class CustomHfAgent(Agent):
|
10 |
def __init__(self, url_endpoint, token, chat_prompt_template=None, run_prompt_template=None, additional_tools=None, input_params=None):
|
11 |
super().__init__(
|
|
|
6 |
import time
|
7 |
from transformers import Agent
|
8 |
|
9 |
+
|
10 |
+
import time
|
11 |
+
import torch
|
12 |
+
|
13 |
class CustomHfAgent(Agent):
|
14 |
def __init__(self, url_endpoint, token, chat_prompt_template=None, run_prompt_template=None, additional_tools=None, input_params=None):
|
15 |
super().__init__(
|