Omnibus commited on
Commit
fcb8c90
·
verified ·
1 Parent(s): 8b02cc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -82,19 +82,18 @@ def find_keyword_fn(c,inp,data):
82
 
83
 
84
  seed=random.randint(1,1000000000)
85
- divr=int(c)/MAX_DATA
86
  divi=int(divr)+1 if divr != int(divr) else int(divr)
87
  chunk = int(int(c)/divr)
88
  out = []
89
  s=0
90
  e=chunk
91
  print(f'e:: {e}')
92
- new_history=""
93
  #task = f'Compile this data to fulfill the task: {task}, and complete the purpose: {purpose}\n'
94
  for z in range(divi):
95
  print(f's:e :: {s}:{e}')
96
 
97
- hist = history[s:e]
98
  resp = run_gpt(
99
  FIND_KEYWORDS,
100
  stop_tokens=[],
 
82
 
83
 
84
  seed=random.randint(1,1000000000)
85
+ divr=int(c)/20000
86
  divi=int(divr)+1 if divr != int(divr) else int(divr)
87
  chunk = int(int(c)/divr)
88
  out = []
89
  s=0
90
  e=chunk
91
  print(f'e:: {e}')
 
92
  #task = f'Compile this data to fulfill the task: {task}, and complete the purpose: {purpose}\n'
93
  for z in range(divi):
94
  print(f's:e :: {s}:{e}')
95
 
96
+ hist = data[s:e]
97
  resp = run_gpt(
98
  FIND_KEYWORDS,
99
  stop_tokens=[],