DevBM commited on
Commit
26381d0
·
verified ·
1 Parent(s): 2be4c28

using llama3 for options generation

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -47,6 +47,8 @@ st.set_page_config(
47
 
48
  st.set_option('deprecation.showPyplotGlobalUse',False)
49
 
 
 
50
  class QuestionGenerationError(Exception):
51
  """Custom exception for question generation errors."""
52
  pass
@@ -602,7 +604,7 @@ def assess_question_quality(context, question, answer):
602
  return overall_score, relevance_score, complexity_score, spelling_correctness
603
 
604
  def main():
605
- load_dotenv()
606
  # Streamlit interface
607
  st.title(":blue[Question Generator System]")
608
  session_id = get_session_id()
 
47
 
48
  st.set_option('deprecation.showPyplotGlobalUse',False)
49
 
50
+ HF_TOKEN = st.secrets['HF_TOKEN']
51
+
52
  class QuestionGenerationError(Exception):
53
  """Custom exception for question generation errors."""
54
  pass
 
604
  return overall_score, relevance_score, complexity_score, spelling_correctness
605
 
606
  def main():
607
+ # load_dotenv()
608
  # Streamlit interface
609
  st.title(":blue[Question Generator System]")
610
  session_id = get_session_id()