Spaces:
Sleeping
Sleeping
Alexander Casimir Fischer commited on
Commit ·
48798a9
1
Parent(s): 6fbfba6
modified: app.py
Browse filesmodified: qc_run.py
app.py
CHANGED
|
@@ -39,11 +39,11 @@ answer_logged=False
|
|
| 39 |
|
| 40 |
|
| 41 |
#Importing variables, objects, templates from "common"
|
| 42 |
-
from
|
| 43 |
-
from
|
| 44 |
-
from
|
| 45 |
-
from
|
| 46 |
-
from
|
| 47 |
|
| 48 |
|
| 49 |
#Setting up streamlit UI, intro
|
|
|
|
| 39 |
|
| 40 |
|
| 41 |
#Importing variables, objects, templates from "common"
|
| 42 |
+
from common import llm, wikipedia #language models
|
| 43 |
+
from common import standard_definition_dict, question_or_task_dict, rubric_dict #dictionaries
|
| 44 |
+
from common import prompt_context, prompt_frq, prompt_evaluation #prompt templates
|
| 45 |
+
from common import context_chain, frq_chain, evaluation_chain #prompting chains
|
| 46 |
+
from common import trim_text, plagiate #custom functions
|
| 47 |
|
| 48 |
|
| 49 |
#Setting up streamlit UI, intro
|
qc_run.py
CHANGED
|
@@ -8,12 +8,12 @@ import base64
|
|
| 8 |
import streamlit as st
|
| 9 |
|
| 10 |
#Importing variables, objects, templates from "common"
|
| 11 |
-
from
|
| 12 |
-
from
|
| 13 |
-
from
|
| 14 |
-
from
|
| 15 |
-
from
|
| 16 |
-
from
|
| 17 |
|
| 18 |
#script:
|
| 19 |
st.set_page_config(page_title="QC Test run FQR Generator", page_icon="⚙️",
|
|
|
|
| 8 |
import streamlit as st
|
| 9 |
|
| 10 |
#Importing variables, objects, templates from "common"
|
| 11 |
+
from common import llm, precise, random, wikipedia #language models
|
| 12 |
+
from common import standard_definition_dict, question_or_task_dict, rubric_dict #dictionaries
|
| 13 |
+
from common import prompt_answer_good, prompt_answer_bad, prompt_qc_run, prompt_qc_grade #prompt templates
|
| 14 |
+
from common import context_chain, frq_chain, evaluation_chain, topic_rand, var #prompting chains
|
| 15 |
+
from common import qc_answer_good_chain, qc_answer_bad_chain, qc_run_chain, qc_grade_chain #prompting chains
|
| 16 |
+
from common import trim_text #custom function
|
| 17 |
|
| 18 |
#script:
|
| 19 |
st.set_page_config(page_title="QC Test run FQR Generator", page_icon="⚙️",
|