Kevin Louis commited on
Commit
ad774cf
1 Parent(s): a7228f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -3,13 +3,15 @@ from huggingface_hub import CommitScheduler
3
  from datasets import Dataset
4
  import gradio as gr
5
  import pandas as pd
6
-
7
 
8
  from parameter_extractor import ParameterExtractor
9
  from DNAseq import DNAseq
10
  from helper import list_at_index_0, list_at_index_1
11
  from logger import cts_log_file_create, logger, cts_logger
12
 
 
 
13
  # Create csv file for data logging
14
  log_file_path = cts_log_file_create("flagged")
15
 
@@ -21,8 +23,10 @@ scheduler = CommitScheduler(
21
  path_in_repo="data",
22
  every=5,
23
  private=True,
 
24
  )
25
 
 
26
  def chat_to_sequence(sequence, user_query):
27
 
28
 
 
3
  from datasets import Dataset
4
  import gradio as gr
5
  import pandas as pd
6
+ import os
7
 
8
  from parameter_extractor import ParameterExtractor
9
  from DNAseq import DNAseq
10
  from helper import list_at_index_0, list_at_index_1
11
  from logger import cts_log_file_create, logger, cts_logger
12
 
13
+ HF_TOKEN = os.environ.get("HF_TOKEN", None)
14
+
15
  # Create csv file for data logging
16
  log_file_path = cts_log_file_create("flagged")
17
 
 
23
  path_in_repo="data",
24
  every=5,
25
  private=True,
26
+ token=HF_TOKEN
27
  )
28
 
29
+
30
  def chat_to_sequence(sequence, user_query):
31
 
32