Kevin Fink commited on
Commit
1e2428b
·
1 Parent(s): ef63026
Files changed (3) hide show
  1. app.py +5 -4
  2. gradio-3.wpr +31 -0
  3. gradio-3.wpu +772 -0
app.py CHANGED
@@ -248,10 +248,11 @@ def fine_tune_model(model, dataset_name, hub_id, api_key, num_epochs, batch_size
248
  # If the trainer_state.json is missing, look for the previous checkpoint
249
  previous_checkpoints = sorted(os.listdir("/data/results"), key=get_checkpoint_int, reverse=True)
250
 
251
- for check in previous_checkpoints[1:]:
252
- try:
253
- print(f"Loading previous checkpoint: {check}")
254
- train_result = trainer.train(resume_from_checkpoint=check)
 
255
  trainer.push_to_hub(commit_message="Training complete!")
256
  return 'DONE!'#train_result
257
  except:
 
248
  # If the trainer_state.json is missing, look for the previous checkpoint
249
  previous_checkpoints = sorted(os.listdir("/data/results"), key=get_checkpoint_int, reverse=True)
250
 
251
+ for check in previous_checkpoints:
252
+ try:
253
+ os.remove(os.path.join('/data/results', check))
254
+ print(f"Loading previous checkpoint")
255
+ train_result = trainer.train(resume_from_checkpoint=True)
256
  trainer.push_to_hub(commit_message="Training complete!")
257
  return 'DONE!'#train_result
258
  except:
gradio-3.wpr ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!wing
2
+ #!version=10.0
3
+ ##################################################################
4
+ # Wing project file #
5
+ ##################################################################
6
+ [project attributes]
7
+ console.toolbox = [{'autosave': False,
8
+ 'cmd': 'bash -norc -ic ". /home/kevin/envs/gradio-3/bin/activate && bash -norc"',
9
+ 'context': ('project',
10
+ ''),
11
+ 'env': ('merge',
12
+ ['TERM=dumb']),
13
+ 'id': 'cmd-WAWesIyTgPz7htNd',
14
+ 'io_encoding': None,
15
+ 'key_binding': None,
16
+ 'line_mode': True,
17
+ 'pseudo_tty': True,
18
+ 'pypath': ('project',
19
+ []),
20
+ 'raise_panel': True,
21
+ 'rundir': ('project',
22
+ ''),
23
+ 'shared': False,
24
+ 'title': 'Terminal 1'}]
25
+ proj.directory-list = [{'dirloc': loc('.'),
26
+ 'excludes': (),
27
+ 'filter': '*',
28
+ 'include_hidden': False,
29
+ 'recursive': True,
30
+ 'watch_for_changes': True}]
31
+ proj.file-type = 'shared'
gradio-3.wpu ADDED
@@ -0,0 +1,772 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!wing
2
+ #!version=8.0
3
+ ##################################################################
4
+ # Wing project file : User-specific branch #
5
+ ##################################################################
6
+ [user attributes]
7
+ debug.show-args-dialog = {loc('selenium_click.py'): False}
8
+ guimgr.overall-gui-state = {'windowing-policy': 'combined-window',
9
+ 'windows': [{'name': 'I6l5El55TJeMhFWhXplgHMMhZVOfFsKo',
10
+ 'size-state': '',
11
+ 'type': 'dock',
12
+ 'view': {'area': 'tall',
13
+ 'constraint': None,
14
+ 'current_pages': [0,
15
+ 0],
16
+ 'full-screen': False,
17
+ 'notebook_display': 'normal',
18
+ 'notebook_percent': 0.3223270440251572,
19
+ 'override_title': None,
20
+ 'pagelist': [('python-shell',
21
+ 'tall',
22
+ 0,
23
+ {'active-range': (None,
24
+ -1,
25
+ -1),
26
+ 'attrib-starts': [],
27
+ 'code-line': '',
28
+ 'first-line': 0,
29
+ 'folded-linenos': [],
30
+ 'history': {None: ["sorted(['checkpoint-200', 'checkpoint-1000', 'checkpoint-800'])\n",
31
+ "['checkpoint-200', 'checkpoint-1000', 'checkpoint-800'].sort\n",
32
+ "['checkpoint-200', 'checkpoint-1000', 'checkpoint-800'].sort()\n",
33
+ "print(['checkpoint-200', 'checkpoint-1000', 'checkpoint-800'].sort())\n",
34
+ 'import glob\n',
35
+ 'import os\n',
36
+ "previous_checkpoints = sorted(glob.glob('src'), key=os.path.getmtime)\n",
37
+ "previous_checkpoints = sorted(glob.glob('.'), key=os.path.getmtime)\n",
38
+ "previous_checkpoints = sorted(glob.glob('/'), key=os.path.getmtime)\n",
39
+ "glob.glob('.')\n",
40
+ "glob.glob('.', recursive=True)\n",
41
+ "glob.glob('.', recursive=True, root_dir='.')\n",
42
+ "glob.glob('*', recursive=True, root_dir='.')\n",
43
+ "glob.glob('*', recursive=True)\n",
44
+ "glob.glob('*')\n",
45
+ "glob.glob('t*')\n",
46
+ "os.path.dirname('/home/kevin/kevin.x')\n",
47
+ "previous_checkpoints = sorted(glob.glob('*'), key=os.path.getmtime)\n",
48
+ "previous_checkpoints = sorted(glob.glob('src/*'), key=os.path.getmtime)\n",
49
+ "d=['checkpoint-200', 'checkpoint-1000', 'checkpoint-800']\n",
50
+ 'previous_checkpoints = sorted(glob.glob(d),)\n',
51
+ "'checkpoint-200'.find('-')\n",
52
+ "'checkpoint-200'[10]\n",
53
+ "'checkpoint-200'[11]\n",
54
+ "def get_checkpoint_int(s):\n int_index = s.find('-')\n return int(s[int_index+1])\n\n",
55
+ 'get_checkpoint_int(d[0])\n',
56
+ "def get_checkpoint_int(s):\n int_index = s.find('-')\n return int(s[int_index+1:])\n\n",
57
+ 'previous_checkpoints = sorted(d, key=get_checkpoint_int)\n',
58
+ 'previous_checkpoints = sorted(d, key=get_checkpoint_int, reverse=True)\n',
59
+ 'previous_checkpoints[-2]\n',
60
+ 'previous_checkpoints\n']},
61
+ 'launch-id': None,
62
+ 'sel-line': 2,
63
+ 'sel-line-start': 128,
64
+ 'selection_end': 128,
65
+ 'selection_start': 128,
66
+ 'zoom': 0}),
67
+ ('testing',
68
+ 'tall',
69
+ 0,
70
+ {'added-files': [loc('../tidal_slides_com/tests/unit/test_ts_ai.py'),
71
+ loc('../tidal_slides_com/tests/unit/test_ts_invoice.py'),
72
+ loc('../tidal_slides_com/tests/unit/test_ts_sql_util.py'),
73
+ loc('../tidal_slides_com/tests/e2e/test_e2e_ts_invoice.py'),
74
+ loc('../tidal_slides_com/tests/unit/test_ts_pptx.py'),
75
+ loc('../tidal_slides_com/tests/unit/test_ts_generator.py'),
76
+ loc('../tidal_slides_com/tests/functional/test_functional_ts_ai.py'),
77
+ loc('../tidal_slides_com/tests/unit/test_ts_chroma_store.py'),
78
+ loc('../tidal_slides_com/tests/unit/test_ts_main.py'),
79
+ loc('../tidal_slides_com/tests/unit/test_ts_util.py'),
80
+ loc('../tidal_slides_com/tests/unit/test_ts_pdf.py')],
81
+ 'filter': '',
82
+ 'recent-filters': None,
83
+ 'sort-order': 'alpha',
84
+ 'tree-state': {'expanded-nodes': [(0,),
85
+ (0,
86
+ 1),
87
+ (0,
88
+ 1,
89
+ 0),
90
+ (0,
91
+ 1,
92
+ 1),
93
+ (5,),
94
+ (5,
95
+ 0),
96
+ (6,),
97
+ (9,)],
98
+ 'selected-nodes': [(0,
99
+ 1,
100
+ 1)],
101
+ 'top-node': (0,)}}),
102
+ ('browser',
103
+ 'tall',
104
+ 0,
105
+ {'all_tree_states': {loc('../../../../usr/lib/python3.12/importlib/_bootstrap.py'): {'expanded-nodes': [],
106
+ 'selected-nodes': [],
107
+ 'top-node': [('class def',
108
+ loc('../../../../usr/lib/python3.12/importlib/_bootstrap.py'),
109
+ 'BuiltinImporter')]},
110
+ loc('../../../../usr/lib/python3.12/json/decoder.py'): {'expanded-nodes': [],
111
+ 'selected-nodes': [],
112
+ 'top-node': [('generic attribute',
113
+ loc('../../../../usr/lib/python3.12/json/decoder.py'),
114
+ 'BACKSLASH')]},
115
+ loc('../../../../usr/lib/python3.12/unittest/loader.py'): {'expanded-nodes': [],
116
+ 'selected-nodes': [],
117
+ 'top-node': [('generic attribute',
118
+ loc('../../../../usr/lib/python3.12/unittest/loader.py'),
119
+ 'defaultTestLoader')]},
120
+ loc('../../../../usr/lib/python3.12/unittest/mock.py'): {'expanded-nodes': [],
121
+ 'selected-nodes': [],
122
+ 'top-node': [('generic attribute',
123
+ loc('../../../../usr/lib/python3.12/unittest/mock.py'),
124
+ 'ANY')]},
125
+ loc('../../../../usr/lib/wingpro10/resources/typeshed/stdlib/2and3/datetime.pyi'): {'expanded-nodes': [],
126
+ 'selected-nodes': [],
127
+ 'top-node': [('class def',
128
+ loc('../../../../usr/lib/wingpro10/resources/typeshed/stdlib/2and3/datetime.pyi'),
129
+ 'date')]},
130
+ loc('../../envs/tidal_slides_com/lib/python3.12/site-packages/bs4/__init__.py'): {'expanded-nodes': [],
131
+ 'selected-nodes': [[('generic attribute',
132
+ loc('../../envs/tidal_slides_com/lib/python3.12/site-packages/bs4/__init__.py'),
133
+ '__version__')]],
134
+ 'top-node': [('class def',
135
+ loc('../../envs/tidal_slides_com/lib/python3.12/site-packages/bs4/__init__.py'),
136
+ 'BeautifulSoup')]},
137
+ loc('../../envs/tidal_slides_com/lib/python3.12/site-packages/langchain_community/document_loaders/html_bs.py'): {'expanded-nodes': [],
138
+ 'selected-nodes': [[('generic attribute',
139
+ loc('../../envs/tidal_slides_com/lib/python3.12/site-packages/langchain_community/document_loaders/html_bs.py'),
140
+ 'logger')]],
141
+ 'top-node': [('class def',
142
+ loc('../../envs/tidal_slides_com/lib/python3.12/site-packages/langchain_community/document_loaders/html_bs.py'),
143
+ 'BSHTMLLoader')]},
144
+ loc('../../envs/tidal_slides_com/lib/python3.12/site-packages/langchain_community/document_loaders/text.py'): {'expanded-nodes': [],
145
+ 'selected-nodes': [],
146
+ 'top-node': [('generic attribute',
147
+ loc('../../envs/tidal_slides_com/lib/python3.12/site-packages/langchain_community/document_loaders/text.py'),
148
+ 'logger')]},
149
+ loc('../../envs/tidal_slides_com/lib/python3.12/site-packages/langchain_text_splitters/base.py'): {'expanded-nodes': [],
150
+ 'selected-nodes': [],
151
+ 'top-node': [('class def',
152
+ loc('../../envs/tidal_slides_com/lib/python3.12/site-packages/langchain_text_splitters/base.py'),
153
+ 'Language')]},
154
+ loc('../../envs/tidal_slides_com/lib/python3.12/site-packages/requests/sessions.py'): {'expanded-nodes': [],
155
+ 'selected-nodes': [],
156
+ 'top-node': [('function def',
157
+ loc('../../envs/tidal_slides_com/lib/python3.12/site-packages/requests/sessions.py'),
158
+ 'merge_hooks')]},
159
+ loc('../tidal_slides_com/release.py'): {'expanded-nodes': [],
160
+ 'selected-nodes': [],
161
+ 'top-node': [('generic attribute',
162
+ loc('../tidal_slides_com/release.py'),
163
+ 'args')]},
164
+ loc('../tidal_slides_com/src/test_delete.py'): {'expanded-nodes': [],
165
+ 'selected-nodes': [],
166
+ 'top-node': [('generic attribute',
167
+ loc('../tidal_slides_com/src/test_delete.py'),
168
+ 'session')]},
169
+ loc('../tidal_slides_com/src/ts_ai (copy).py'): {'expanded-nodes': [],
170
+ 'selected-nodes': [],
171
+ 'top-node': None},
172
+ loc('../tidal_slides_com/src/ts_ai _e2e.py'): {'expanded-nodes': [],
173
+ 'selected-nodes': [],
174
+ 'top-node': [('generic attribute',
175
+ loc('../tidal_slides_com/src/ts_ai _e2e.py'),
176
+ 'agent')]},
177
+ loc('../tidal_slides_com/src/ts_ai.py'): {'expanded-nodes': [],
178
+ 'selected-nodes': [],
179
+ 'top-node': [('generic attribute',
180
+ loc('../tidal_slides_com/src/ts_ai.py'),
181
+ 'agent')]},
182
+ loc('../tidal_slides_com/src/ts_generator.py'): {'expanded-nodes': [],
183
+ 'selected-nodes': [],
184
+ 'top-node': [('generic attribute',
185
+ loc('../tidal_slides_com/src/ts_generator.py'),
186
+ 'engine')]},
187
+ loc('../tidal_slides_com/src/ts_logging.py'): {'expanded-nodes': [],
188
+ 'selected-nodes': [],
189
+ 'top-node': [('class def',
190
+ loc('../tidal_slides_com/src/ts_logging.py'),
191
+ 'CustomLogger')]},
192
+ loc('../tidal_slides_com/src/ts_main.py'): {'expanded-nodes': [],
193
+ 'selected-nodes': [],
194
+ 'top-node': [('function def',
195
+ loc('../tidal_slides_com/src/ts_main.py'),
196
+ 'add_invoice')]},
197
+ loc('../tidal_slides_com/src/ts_pdf.py'): {'expanded-nodes': [],
198
+ 'selected-nodes': [],
199
+ 'top-node': [('class def',
200
+ loc('../tidal_slides_com/src/ts_pdf.py'),
201
+ 'PdfCreator')]},
202
+ loc('../tidal_slides_com/src/ts_pptx.py'): {'expanded-nodes': [],
203
+ 'selected-nodes': [],
204
+ 'top-node': [('class def',
205
+ loc('../tidal_slides_com/src/ts_pptx.py'),
206
+ 'PptxCreator')]},
207
+ loc('../tidal_slides_com/src/util/ts_chroma_store.py'): {'expanded-nodes': [],
208
+ 'selected-nodes': [[('class def',
209
+ loc('../tidal_slides_com/src/util/ts_chroma_store.py'),
210
+ 'ChromaStore')]],
211
+ 'top-node': [('class def',
212
+ loc('../tidal_slides_com/src/util/ts_chroma_store.py'),
213
+ 'ChromaStore')]},
214
+ loc('../tidal_slides_com/src/util/ts_chroma_store2.py'): {'expanded-nodes': [],
215
+ 'selected-nodes': [],
216
+ 'top-node': [('class def',
217
+ loc('../tidal_slides_com/src/util/ts_chroma_store2.py'),
218
+ 'ChromaStore')]},
219
+ loc('../tidal_slides_com/src/util/ts_invoice.py'): {'expanded-nodes': [],
220
+ 'selected-nodes': [],
221
+ 'top-node': [('function def',
222
+ loc('../tidal_slides_com/src/util/ts_invoice.py'),
223
+ 'create_invoice')]},
224
+ loc('../tidal_slides_com/src/util/ts_pydantic_models.py'): {'expanded-nodes': [],
225
+ 'selected-nodes': [],
226
+ 'top-node': [('class def',
227
+ loc('../tidal_slides_com/src/util/ts_pydantic_models.py'),
228
+ 'AddInvoice')]},
229
+ loc('../tidal_slides_com/src/util/ts_server_status.py'): {'expanded-nodes': [],
230
+ 'selected-nodes': [],
231
+ 'top-node': [('function def',
232
+ loc('../tidal_slides_com/src/util/ts_server_status.py'),
233
+ 'check_service_status')]},
234
+ loc('../tidal_slides_com/src/util/ts_sql_util.py'): {'expanded-nodes': [],
235
+ 'selected-nodes': [],
236
+ 'top-node': [('class def',
237
+ loc('../tidal_slides_com/src/util/ts_sql_util.py'),
238
+ 'Account')]},
239
+ loc('../tidal_slides_com/src/util/ts_util.py'): {'expanded-nodes': [],
240
+ 'selected-nodes': [[('function def',
241
+ loc('../tidal_slides_com/src/util/ts_util.py'),
242
+ 'add_brevo_contact')]],
243
+ 'top-node': [('function def',
244
+ loc('../tidal_slides_com/src/util/ts_util.py'),
245
+ 'add_brevo_contact')]},
246
+ loc('../tidal_slides_com/tests/e2e/test_e2e_ts_invoice.py'): {'expanded-nodes': [],
247
+ 'selected-nodes': [],
248
+ 'top-node': [('class def',
249
+ loc('../tidal_slides_com/tests/e2e/test_e2e_ts_invoice.py'),
250
+ 'TestCreateInvoice')]},
251
+ loc('../tidal_slides_com/tests/unit/test_ts_invoice.py'): {'expanded-nodes': [],
252
+ 'selected-nodes': [],
253
+ 'top-node': [('generic attribute',
254
+ loc('../tidal_slides_com/tests/unit/test_ts_invoice.py'),
255
+ 'mock_util')]},
256
+ loc('../tidal_slides_com/tests/unit/test_ts_pptx.py'): {'expanded-nodes': [],
257
+ 'selected-nodes': [],
258
+ 'top-node': [('class def',
259
+ loc('../tidal_slides_com/tests/unit/test_ts_pptx.py'),
260
+ 'TestPptxCreatorMethods')]},
261
+ loc('../tidal_slides_com/tests/unit/test_ts_sql_util.py'): {'expanded-nodes': [],
262
+ 'selected-nodes': [],
263
+ 'top-node': [('generic attribute',
264
+ loc('../tidal_slides_com/tests/unit/test_ts_sql_util.py'),
265
+ 'mock_engine')]},
266
+ loc('../tidal_slides_com/tests/unit/test_ts_util.py'): {'expanded-nodes': [],
267
+ 'selected-nodes': [],
268
+ 'top-node': [('generic attribute',
269
+ loc('../tidal_slides_com/tests/unit/test_ts_util.py'),
270
+ 'mock_get_token')]},
271
+ loc('unknown:<untitled> #2'): {'expanded-nodes': [],
272
+ 'selected-nodes': [],
273
+ 'top-node': [('generic attribute',
274
+ loc('unknown:<untitled> #3'),
275
+ 'r')]}},
276
+ 'browse_mode': 'Current Module',
277
+ 'follow-selection': False,
278
+ 'sort_mode': 'Alphabetically',
279
+ 'visibility_options': {'Derived Classes': False,
280
+ 'Imported': False,
281
+ 'Modules': True}}),
282
+ ('snippets',
283
+ 'tall',
284
+ 0,
285
+ {'tree-states': {'__all__': [],
286
+ 'c': [],
287
+ 'django': [],
288
+ 'html': [],
289
+ 'py': []}}),
290
+ ('debug-io',
291
+ 'tall',
292
+ 1,
293
+ {}),
294
+ ('debug-stack',
295
+ 'tall',
296
+ 1,
297
+ {'codeline-mode': 'below'}),
298
+ ('messages',
299
+ 'tall',
300
+ 1,
301
+ {'current-domain': 0})],
302
+ 'primary_view_state': {'area': 'wide',
303
+ 'constraint': None,
304
+ 'current_pages': [2,
305
+ 1],
306
+ 'notebook_display': 'normal',
307
+ 'notebook_percent': 0.28547008547008546,
308
+ 'override_title': None,
309
+ 'pagelist': [('source-assistant',
310
+ 'wide',
311
+ 0,
312
+ {}),
313
+ ('batch-search',
314
+ 'wide',
315
+ 0,
316
+ {'fScope': {'fFileSetName': 'All Source Files',
317
+ 'fLocation': None,
318
+ 'fRecursive': True,
319
+ 'fType': 'current-file'},
320
+ 'fSearchSpec': {'fEndPos': None,
321
+ 'fIncludeLinenos': True,
322
+ 'fInterpretBackslashes': False,
323
+ 'fMatchCase': False,
324
+ 'fOmitBinary': True,
325
+ 'fRegexFlags': 42,
326
+ 'fReplaceText': '',
327
+ 'fReverse': False,
328
+ 'fSearchText': 'self.logg',
329
+ 'fStartPos': 0,
330
+ 'fStyle': 'text',
331
+ 'fWholeWords': False,
332
+ 'fWrap': True},
333
+ 'fUIOptions': {'fAutoBackground': True,
334
+ 'fFilePrefix': 'short-file',
335
+ 'fFindAfterReplace': True,
336
+ 'fInSelection': False,
337
+ 'fIncremental': True,
338
+ 'fReplaceOnDisk': False,
339
+ 'fShowFirstMatch': False,
340
+ 'fShowLineno': True,
341
+ 'fShowReplaceWidgets': True},
342
+ 'replace-entry-expanded': False,
343
+ 'search-entry-expanded': False}),
344
+ ('interactive-search',
345
+ 'wide',
346
+ 0,
347
+ {'fScope': {'fFileSetName': 'All Source Files',
348
+ 'fLocation': None,
349
+ 'fRecursive': True,
350
+ 'fType': 'project-files'},
351
+ 'fSearchSpec': {'fEndPos': None,
352
+ 'fIncludeLinenos': True,
353
+ 'fInterpretBackslashes': False,
354
+ 'fMatchCase': False,
355
+ 'fOmitBinary': True,
356
+ 'fRegexFlags': 42,
357
+ 'fReplaceText': 'add_knowledge_base_to_vector_store',
358
+ 'fReverse': False,
359
+ 'fSearchText': 'lf.app.aupdate_stat',
360
+ 'fStartPos': 0,
361
+ 'fStyle': 'wildcard',
362
+ 'fWholeWords': False,
363
+ 'fWrap': True},
364
+ 'fUIOptions': {'fAutoBackground': True,
365
+ 'fFilePrefix': 'short-file',
366
+ 'fFindAfterReplace': True,
367
+ 'fInSelection': False,
368
+ 'fIncremental': True,
369
+ 'fReplaceOnDisk': False,
370
+ 'fShowFirstMatch': False,
371
+ 'fShowLineno': True,
372
+ 'fShowReplaceWidgets': False}}),
373
+ ('debug-data',
374
+ 'wide',
375
+ 0,
376
+ {}),
377
+ ('debug-breakpoints',
378
+ 'wide',
379
+ 0,
380
+ {'tree-state': []}),
381
+ ('ai',
382
+ 'wide',
383
+ 0,
384
+ {'auto-context': 0,
385
+ 'chat-auto-context': 0,
386
+ 'chat-enter-executes': 1,
387
+ 'chat-target': 'selection',
388
+ 'current-page': 0,
389
+ 'enter-executes': False,
390
+ 'replace-mode': 'replace',
391
+ 'request': '',
392
+ 'show-console': False,
393
+ 'target': 'selection'}),
394
+ ('versioncontrol.git',
395
+ 'wide',
396
+ 0,
397
+ {}),
398
+ ('uses',
399
+ 'wide',
400
+ 0,
401
+ {}),
402
+ ('debug-probe',
403
+ 'wide',
404
+ 1,
405
+ {'active-range': (None,
406
+ -1,
407
+ -1),
408
+ 'attrib-starts': [],
409
+ 'code-line': '',
410
+ 'first-line': 0,
411
+ 'folded-linenos': [],
412
+ 'history': {},
413
+ 'launch-id': None,
414
+ 'sel-line': 0,
415
+ 'sel-line-start': 0,
416
+ 'selection_end': 0,
417
+ 'selection_start': 0,
418
+ 'zoom': 0}),
419
+ ('debug-exceptions',
420
+ 'wide',
421
+ 1,
422
+ {}),
423
+ ('os-command',
424
+ 'wide',
425
+ 1,
426
+ {'last-percent': 0.8,
427
+ 'toolbox-percent': 1.0,
428
+ 'toolbox-tree-sel': 'cmd-WAWesIyTgPz7htNd'}),
429
+ ('project',
430
+ 'wide',
431
+ 1,
432
+ {'tree-state': {'file-sort-method': 'by name',
433
+ 'list-files-first': False,
434
+ 'tree-states': {'deep': {'expanded-nodes': [],
435
+ 'selected-nodes': [],
436
+ 'top-node': (0,)}},
437
+ 'tree-style': 'deep'}}),
438
+ ('indent',
439
+ 'wide',
440
+ 1,
441
+ {}),
442
+ ('bookmarks',
443
+ 'wide',
444
+ 1,
445
+ {'filter-text': ''}),
446
+ ('debug-watch',
447
+ 'wide',
448
+ 1,
449
+ {'node-states': [('eval',
450
+ "glob.glob(os.path.join(os.path.split(checkpoint_dir),'checkpoint-*'))")],
451
+ 'tree-state': {'expanded-nodes': [],
452
+ 'selected-nodes': [],
453
+ 'top-node': (0,)}}),
454
+ ('debug-modules',
455
+ 'wide',
456
+ 1,
457
+ {})],
458
+ 'primary_view_state': {'editor_states': ({'bookmarks': ([[loc('app.py'),
459
+ {'attrib-starts': [('fine_tune_model|0|',
460
+ 30)],
461
+ 'code-line': " output_dir='/data/results',\n",
462
+ 'first-line': 68,
463
+ 'folded-linenos': [],
464
+ 'sel-line': 72,
465
+ 'sel-line-start': 2869,
466
+ 'selection_end': 2869,
467
+ 'selection_start': 2869,
468
+ 'zoom': 0},
469
+ 1733819891.4425378],
470
+ [loc('app.py'),
471
+ {'attrib-starts': [('fine_tune_model|0|',
472
+ 30)],
473
+ 'code-line': " output_dir='/data/results',\n",
474
+ 'first-line': 224,
475
+ 'folded-linenos': [],
476
+ 'sel-line': 72,
477
+ 'sel-line-start': 2869,
478
+ 'selection_end': 2869,
479
+ 'selection_start': 2869,
480
+ 'zoom': 0},
481
+ 1733819898.7307088],
482
+ [loc('app.py'),
483
+ {'attrib-starts': [('fine_tune_model|0|',
484
+ 30)],
485
+ 'code-line': ' logging_steps=100,\n',
486
+ 'first-line': 81,
487
+ 'folded-linenos': [],
488
+ 'sel-line': 84,
489
+ 'sel-line-start': 3389,
490
+ 'selection_end': 3418,
491
+ 'selection_start': 3418,
492
+ 'zoom': 0},
493
+ 1733819967.3641207],
494
+ [loc('app.py'),
495
+ {'attrib-starts': [('fine_tune_model|0|',
496
+ 30)],
497
+ 'code-line': " print(os.listdir('/data/results'))\n",
498
+ 'first-line': 228,
499
+ 'folded-linenos': [],
500
+ 'sel-line': 234,
501
+ 'sel-line-start': 10995,
502
+ 'selection_end': 11045,
503
+ 'selection_start': 11045,
504
+ 'zoom': 0},
505
+ 1733820110.295894],
506
+ [loc('app.py'),
507
+ {'attrib-starts': [('fine_tune_model|0|',
508
+ 30)],
509
+ 'code-line': ' print(f\'ROOTDIR: {os.listdir("/data/results")}\')\n',
510
+ 'first-line': 228,
511
+ 'folded-linenos': [],
512
+ 'sel-line': 231,
513
+ 'sel-line-start': 10856,
514
+ 'selection_end': 10893,
515
+ 'selection_start': 10893,
516
+ 'zoom': 0},
517
+ 1733827087.3649247],
518
+ [loc('app.py'),
519
+ {'attrib-starts': [('fine_tune_model|0|',
520
+ 30)],
521
+ 'code-line': ' print(f\'ROOTDIR: {os.listdir("/data/results")}\')\n',
522
+ 'first-line': 159,
523
+ 'folded-linenos': [],
524
+ 'sel-line': 231,
525
+ 'sel-line-start': 10856,
526
+ 'selection_end': 10893,
527
+ 'selection_start': 10893,
528
+ 'zoom': 0},
529
+ 1733827099.400229],
530
+ [loc('app.py'),
531
+ {'attrib-starts': [('fine_tune_model|0|',
532
+ 30)],
533
+ 'code-line': ' logging_steps=200,\n',
534
+ 'first-line': 72,
535
+ 'folded-linenos': [],
536
+ 'sel-line': 84,
537
+ 'sel-line-start': 3389,
538
+ 'selection_end': 3416,
539
+ 'selection_start': 3416,
540
+ 'zoom': 0},
541
+ 1733827130.3357885],
542
+ [loc('app.py'),
543
+ {'attrib-starts': [('fine_tune_model|0|',
544
+ 30)],
545
+ 'code-line': " previous_checkpoints = sorted(glob.glob(os.path.join(os.path.dirname(checkpoint_dir), 'checkpoint-*')), key=os.path.getmtime)\n",
546
+ 'first-line': 231,
547
+ 'folded-linenos': [],
548
+ 'sel-line': 244,
549
+ 'sel-line-start': 11475,
550
+ 'selection_end': 11555,
551
+ 'selection_start': 11555,
552
+ 'zoom': 0},
553
+ 1733881654.3978486],
554
+ [loc('../../../../usr/lib/python3.12/posixpath.py'),
555
+ {'attrib-starts': [('_joinrealpath|0|',
556
+ 439)],
557
+ 'code-line': ' st = os.lstat(newpath)\n',
558
+ 'first-line': 454,
559
+ 'folded-linenos': [],
560
+ 'sel-line': 469,
561
+ 'sel-line-start': 14128,
562
+ 'selection_end': 14128,
563
+ 'selection_start': 14128,
564
+ 'zoom': 0},
565
+ 1733881656.3022408],
566
+ [loc('../../../../usr/lib/python3.12/posixpath.py'),
567
+ {'attrib-starts': [('split|0|',
568
+ 99)],
569
+ 'code-line': ' p = os.fspath(p)\n',
570
+ 'first-line': 97,
571
+ 'folded-linenos': [],
572
+ 'sel-line': 102,
573
+ 'sel-line-start': 3425,
574
+ 'selection_end': 3425,
575
+ 'selection_start': 3425,
576
+ 'zoom': 0},
577
+ 1733881665.7618647],
578
+ [loc('app.py'),
579
+ {'attrib-starts': [('fine_tune_model|0|',
580
+ 30)],
581
+ 'code-line': ' print(f"Loading previous checkpoint: {check}")\n',
582
+ 'first-line': 237,
583
+ 'folded-linenos': [],
584
+ 'sel-line': 252,
585
+ 'sel-line-start': 11695,
586
+ 'selection_end': 11758,
587
+ 'selection_start': 11758,
588
+ 'zoom': 0},
589
+ 1733882358.8127315],
590
+ [loc('../tidal_slides_com/src/util/ts_util.py'),
591
+ {'attrib-starts': [],
592
+ 'code-line': 'async def verify_transaction(transaction_id: int):\n',
593
+ 'first-line': 120,
594
+ 'folded-linenos': [],
595
+ 'sel-line': 59,
596
+ 'sel-line-start': 1389,
597
+ 'selection_end': 1417,
598
+ 'selection_start': 1399,
599
+ 'zoom': 0},
600
+ 1733882383.6024365],
601
+ [loc('selenium_click.py'),
602
+ {'attrib-starts': [],
603
+ 'code-line': '\n',
604
+ 'first-line': 0,
605
+ 'folded-linenos': [],
606
+ 'sel-line': 0,
607
+ 'sel-line-start': 0,
608
+ 'selection_end': 0,
609
+ 'selection_start': 0,
610
+ 'zoom': 0},
611
+ 1733882429.9050066],
612
+ [loc('../../.wingpro10/updates/from_10.0.3.0/10.0.4.5/doc/TOC'),
613
+ {'displayed-index': -1,
614
+ 'viewer-state': {'history': [-1,
615
+ 0],
616
+ 'history-pos': 0,
617
+ 'index': -1,
618
+ 'top': 0,
619
+ 'top-left-pos': 0}},
620
+ 1733882459.832084],
621
+ [loc('selenium_click.py'),
622
+ {'attrib-starts': [],
623
+ 'code-line': ' \n',
624
+ 'first-line': 18,
625
+ 'folded-linenos': [],
626
+ 'sel-line': 18,
627
+ 'sel-line-start': 611,
628
+ 'selection_end': 615,
629
+ 'selection_start': 615,
630
+ 'zoom': 0},
631
+ 1733883001.3479598],
632
+ [loc('../../envs/gradio-3/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py'),
633
+ {'attrib-starts': [('ErrorHandler|0|',
634
+ 140),
635
+ ('ErrorHandler|0|.check_response|0|',
636
+ 143)],
637
+ 'code-line': ' raise exception_class(message, screen, stacktrace)\n',
638
+ 'first-line': 209,
639
+ 'folded-linenos': [],
640
+ 'sel-line': 231,
641
+ 'sel-line-start': 10605,
642
+ 'selection_end': 10605,
643
+ 'selection_start': 10605,
644
+ 'zoom': 0},
645
+ 1733883008.4021084],
646
+ [loc('selenium_click.py'),
647
+ {'attrib-starts': [],
648
+ 'code-line': 'from selenium.webdriver.support.ui import WebDriverWait\n',
649
+ 'first-line': 0,
650
+ 'folded-linenos': [],
651
+ 'sel-line': 5,
652
+ 'sel-line-start': 189,
653
+ 'selection_end': 189,
654
+ 'selection_start': 189,
655
+ 'zoom': 0},
656
+ 1733883673.3276145],
657
+ [loc('../../envs/gradio-3/lib/python3.12/site-packages/selenium/webdriver/support/wait.py'),
658
+ {'attrib-starts': [('WebDriverWait|0|',
659
+ 38),
660
+ ('WebDriverWait|0|.until|0|',
661
+ 80)],
662
+ 'code-line': ' raise TimeoutException(message, screen, stacktrace)\n',
663
+ 'first-line': 82,
664
+ 'folded-linenos': [],
665
+ 'sel-line': 104,
666
+ 'sel-line-start': 4266,
667
+ 'selection_end': 4266,
668
+ 'selection_start': 4266,
669
+ 'zoom': 0},
670
+ 1733883678.831193],
671
+ [loc('selenium_click.py'),
672
+ {'attrib-starts': [],
673
+ 'code-line': ' WebDriverWait(driver, 30).until(\n',
674
+ 'first-line': 0,
675
+ 'folded-linenos': [],
676
+ 'sel-line': 14,
677
+ 'sel-line-start': 438,
678
+ 'selection_end': 466,
679
+ 'selection_start': 466,
680
+ 'zoom': 0},
681
+ 1733883831.5308323],
682
+ [loc('../../envs/gradio-3/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py'),
683
+ {'attrib-starts': [('ErrorHandler|0|',
684
+ 140),
685
+ ('ErrorHandler|0|.check_response|0|',
686
+ 143)],
687
+ 'code-line': ' raise exception_class(message, screen, stacktrace)\n',
688
+ 'first-line': 218,
689
+ 'folded-linenos': [],
690
+ 'sel-line': 231,
691
+ 'sel-line-start': 10605,
692
+ 'selection_end': 10605,
693
+ 'selection_start': 10605,
694
+ 'zoom': 0},
695
+ 1733883833.4841597]],
696
+ 20),
697
+ 'current-loc': loc('selenium_click.py'),
698
+ 'editor-state-list': [(loc('selenium_click.py'),
699
+ {'attrib-starts': [],
700
+ 'code-line': " text_areas = driver.find_elements(By.TAG_NAME, 'textarea')\n",
701
+ 'first-line': 0,
702
+ 'folded-linenos': [],
703
+ 'sel-line': 17,
704
+ 'sel-line-start': 547,
705
+ 'selection_end': 609,
706
+ 'selection_start': 609,
707
+ 'zoom': 0})],
708
+ 'has-focus': True,
709
+ 'locked': False},
710
+ [loc('selenium_click.py')]),
711
+ 'open_files': ['selenium_click.py']},
712
+ 'saved_notebook_display': None,
713
+ 'split_percents': {0: 0.4410585404971933,
714
+ 1: 0.5,
715
+ 2: 0.5},
716
+ 'splits': 2,
717
+ 'tab_location': 'top',
718
+ 'traversal_pos': ((1,
719
+ 1),
720
+ 1733883892.590112),
721
+ 'user_data': {}},
722
+ 'saved_notebook_display': None,
723
+ 'split_percents': {0: 0.49743589743589745},
724
+ 'splits': 2,
725
+ 'tab_location': 'left',
726
+ 'traversal_pos': ((1,
727
+ 0),
728
+ 1733883788.5011835),
729
+ 'user_data': {}},
730
+ 'window-alloc': (0,
731
+ 0,
732
+ 1920,
733
+ 793)}]}
734
+ guimgr.recent-documents = [loc('selenium_click.py')]
735
+ guimgr.visual-state = {loc('../../envs/gradio-3/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py'): {'attrib-starts': [('ErrorHandler|0|',
736
+ 140),
737
+ ('ErrorHandler|0|.check_response|0|',
738
+ 143)],
739
+ 'code-line': ' raise exception_class(message, screen, stacktrace)\n',
740
+ 'first-line': 218,
741
+ 'folded-linenos': [],
742
+ 'sel-line': 231,
743
+ 'sel-line-start': 10605,
744
+ 'selection_end': 10605,
745
+ 'selection_start': 10605,
746
+ 'zoom': 0},
747
+ loc('../../envs/gradio-3/lib/python3.12/site-packages/selenium/webdriver/support/wait.py'): {'attrib-starts': [('WebDriverWait|0|',
748
+ 38),
749
+ ('WebDriverWait|0|.until|0|',
750
+ 80)],
751
+ 'code-line': ' raise TimeoutException(message, screen, stacktrace)\n',
752
+ 'first-line': 82,
753
+ 'folded-linenos': [],
754
+ 'sel-line': 104,
755
+ 'sel-line-start': 4266,
756
+ 'selection_end': 4266,
757
+ 'selection_start': 4266,
758
+ 'zoom': 0},
759
+ loc('gradio-3.wpr'): {'attrib-starts': [],
760
+ 'code-line': '#!wing\n',
761
+ 'first-line': 0,
762
+ 'folded-linenos': [],
763
+ 'sel-line': 0,
764
+ 'sel-line-start': 0,
765
+ 'selection_end': 537,
766
+ 'selection_start': 0,
767
+ 'zoom': 0}}
768
+ proj.pyexec = {None: ('custom',
769
+ '/home/kevin/envs/gradio-3/bin/python3')}
770
+ testing.stored-results = (1,
771
+ [],
772
+ {})