nanom commited on
Commit
ee23f70
1 Parent(s): ad92024

Update interfaces/interface_crowsPairs.py

Browse files
Files changed (1) hide show
  1. interfaces/interface_crowsPairs.py +20 -20
interfaces/interface_crowsPairs.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  import pandas as pd
3
  from tool_info import TOOL_INFO
4
- from modules.module_logsManager import HuggingFaceDatasetSaver
5
  from modules.module_connection import CrowsPairsExplorerConnector
6
 
7
 
@@ -19,10 +19,10 @@ def interface(
19
  from examples.examples_en import examples_crows_pairs
20
 
21
  # --- Init logs ---
22
- log_callback = HuggingFaceDatasetSaver(
23
- available_logs=available_logs,
24
- dataset_name=f"logs_edia_lmodels_{lang}"
25
- )
26
 
27
  # --- Init vars ---
28
  connector = CrowsPairsExplorerConnector(
@@ -118,21 +118,21 @@ def interface(
118
  )
119
 
120
  # --- Logs ---
121
- save_field = [sent0, sent1, sent2, sent3, sent4, sent5]
122
- log_callback.setup(
123
- components=save_field,
124
- flagging_dir=f"logs_crows_pairs"
125
- )
126
 
127
- btn.click(
128
- fn=lambda *args: log_callback.flag(
129
- flag_data=args,
130
- flag_option="crows_pairs",
131
- username="vialibre"
132
- ),
133
- inputs=save_field,
134
- outputs=None,
135
- preprocess=False
136
- )
137
 
138
  return iface
 
1
  import gradio as gr
2
  import pandas as pd
3
  from tool_info import TOOL_INFO
4
+ # from modules.module_logsManager import HuggingFaceDatasetSaver
5
  from modules.module_connection import CrowsPairsExplorerConnector
6
 
7
 
 
19
  from examples.examples_en import examples_crows_pairs
20
 
21
  # --- Init logs ---
22
+ # log_callback = HuggingFaceDatasetSaver(
23
+ # available_logs=available_logs,
24
+ # dataset_name=f"logs_edia_lmodels_{lang}"
25
+ # )
26
 
27
  # --- Init vars ---
28
  connector = CrowsPairsExplorerConnector(
 
118
  )
119
 
120
  # --- Logs ---
121
+ # save_field = [sent0, sent1, sent2, sent3, sent4, sent5]
122
+ # log_callback.setup(
123
+ # components=save_field,
124
+ # flagging_dir=f"logs_crows_pairs"
125
+ # )
126
 
127
+ # btn.click(
128
+ # fn=lambda *args: log_callback.flag(
129
+ # flag_data=args,
130
+ # flag_option="crows_pairs",
131
+ # username="vialibre"
132
+ # ),
133
+ # inputs=save_field,
134
+ # outputs=None,
135
+ # preprocess=False
136
+ # )
137
 
138
  return iface