Spaces:
Runtime error
Runtime error
using llama3 for options generation
Browse files
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()
|