Skip to content

Commit e1a80c7

Browse files
fix tiny issues
1 parent 817df18 commit e1a80c7

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

graphgen/graphgen.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ async def async_judge(self, re_judge=False, skip=False):
217217
self.rephrase_storage, re_judge)
218218
await _update_relations.index_done_callback()
219219

220-
221220
def traverse(self):
222221
loop = create_event_loop()
223222
loop.run_until_complete(self.async_traverse())

webui/app.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ def sum_tokens(client):
191191

192192
data_frame = arguments[-1]
193193
try:
194-
data_frame = arguments[-1]
195194
_update_data = [
196195
[
197196
data_frame.iloc[0, 0],
@@ -210,7 +209,7 @@ def sum_tokens(client):
210209

211210
return output_file, gr.DataFrame(label='Token Stats',
212211
headers=["Source Text Token Count", "Expected Token Usage", "Token Used"],
213-
datatype=["str", "str", "str"],
212+
datatype="str",
214213
interactive=False,
215214
value=data_frame,
216215
visible=True,
@@ -223,7 +222,6 @@ def sum_tokens(client):
223222
# Clean up workspace
224223
cleanup_workspace(graph_gen.working_dir)
225224

226-
227225
with (gr.Blocks(title="GraphGen Demo", theme=gr.themes.Glass(),
228226
css=css) as demo):
229227
# Header
@@ -433,7 +431,7 @@ def sum_tokens(client):
433431
with gr.Blocks():
434432
token_counter = gr.DataFrame(label='Token Stats',
435433
headers=["Source Text Token Count", "Estimated Token Usage", "Token Used"],
436-
datatype=["str", "str", "str"],
434+
datatype="str",
437435
interactive=False,
438436
visible=False,
439437
wrap=True)
@@ -491,5 +489,5 @@ def sum_tokens(client):
491489
)
492490

493491
if __name__ == "__main__":
494-
demo.queue(api_open=False, default_concurrency_limit=10)
492+
demo.queue(api_open=False, default_concurrency_limit=2)
495493
demo.launch(server_name='0.0.0.0')

0 commit comments

Comments
 (0)