Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ import os
|
|
8 |
from huggingface_hub import InferenceClient,HfApi
|
9 |
import random
|
10 |
import json
|
|
|
11 |
#from query import tasks
|
12 |
from prompts import (
|
13 |
FINDER,
|
@@ -213,6 +214,7 @@ def compress_history(purpose, task, history):
|
|
213 |
|
214 |
|
215 |
def call_main(purpose, task, history, action_input):
|
|
|
216 |
resp = run_gpt(
|
217 |
FINDER,
|
218 |
stop_tokens=["observation:", "task:"],
|
@@ -220,6 +222,7 @@ def call_main(purpose, task, history, action_input):
|
|
220 |
seed=random.randint(1,1000000000),
|
221 |
purpose=purpose,
|
222 |
task=task,
|
|
|
223 |
history=history,
|
224 |
)
|
225 |
lines = resp.strip().strip("\n").split("\n")
|
|
|
8 |
from huggingface_hub import InferenceClient,HfApi
|
9 |
import random
|
10 |
import json
|
11 |
+
import datetime
|
12 |
#from query import tasks
|
13 |
from prompts import (
|
14 |
FINDER,
|
|
|
214 |
|
215 |
|
216 |
def call_main(purpose, task, history, action_input):
|
217 |
+
timestamp=datetime.datetime.now()
|
218 |
resp = run_gpt(
|
219 |
FINDER,
|
220 |
stop_tokens=["observation:", "task:"],
|
|
|
222 |
seed=random.randint(1,1000000000),
|
223 |
purpose=purpose,
|
224 |
task=task,
|
225 |
+
time_now=timestamp,
|
226 |
history=history,
|
227 |
)
|
228 |
lines = resp.strip().strip("\n").split("\n")
|