Ki-Seki commited on
Commit
d2c0e35
·
1 Parent(s): fa48de8

chore: misc

Browse files
Files changed (1) hide show
  1. app.py +12 -15
app.py CHANGED
@@ -1,28 +1,25 @@
1
- import gradio as gr
2
-
3
- from autotab import AutoTab
4
  import json
5
  import time
6
- import pandas as pd
7
 
 
 
8
 
9
- def convert_seconds_to_time(seconds):
10
- return time.strftime("%H:%M:%S", time.gmtime(seconds))
11
 
12
 
13
  def auto_tabulator_completion(
14
- in_file,
15
- instruction,
16
- max_examples,
17
- model_name,
18
- generation_config,
19
- save_every,
20
- api_key,
21
- base_url,
22
  ) -> tuple[str, str, str, pd.DataFrame]:
23
  output_file_name = "ouput.xlsx"
24
  autotab = AutoTab(
25
- in_file_path=in_file.name,
26
  instruction=instruction,
27
  out_file_path=output_file_name,
28
  max_examples=max_examples,
 
 
 
 
1
  import json
2
  import time
 
3
 
4
+ import gradio as gr
5
+ import pandas as pd
6
 
7
+ from autotab import AutoTab
 
8
 
9
 
10
  def auto_tabulator_completion(
11
+ in_file_path: str,
12
+ instruction: str,
13
+ max_examples: int,
14
+ model_name: str,
15
+ generation_config: dict,
16
+ save_every: int,
17
+ api_key: str,
18
+ base_url: str,
19
  ) -> tuple[str, str, str, pd.DataFrame]:
20
  output_file_name = "ouput.xlsx"
21
  autotab = AutoTab(
22
+ in_file_path=in_file_path,
23
  instruction=instruction,
24
  out_file_path=output_file_name,
25
  max_examples=max_examples,