dsleo commited on
Commit
1f731dd
·
1 Parent(s): 532392b
Files changed (2) hide show
  1. app.py +3 -17
  2. requirements.txt +1 -1
app.py CHANGED
@@ -16,23 +16,9 @@ model = SentenceTransformer(MODEL_NAME)
16
  # Load preloaded dataset
17
  @st.cache_data
18
  def load_data():
19
- data = [
20
- {
21
- "uuid": "350d6834-3231-5d23-89e9-c7dc0f3fde0b",
22
- "problem": "A function $f$ has the property that $f(3x-1)=x^2+x+1$ for all real numbers $x$. What is $f(5)$?",
23
- "source": "aops-wiki",
24
- "question_type": "MCQ",
25
- "problem_type": "Algebra"
26
- },
27
- {
28
- "uuid": "b67e9cf9-8b3a-5a34-a118-4ce2aeb2c3d8",
29
- "problem": "A function $f$ has the property that $f(3x-1)=x^2+x+1$ for all real numbers $x$. What is $f(5)$?",
30
- "source": "MATH-train",
31
- "question_type": "math-word-problem",
32
- "problem_type": "Algebra"
33
- },
34
- ]
35
- return pd.DataFrame(data)
36
 
37
  df = load_data()
38
 
 
16
  # Load preloaded dataset
17
  @st.cache_data
18
  def load_data():
19
+ file_path = "data/merged_dataset.csv"
20
+ df = pd.read_csv(file_path)
21
+ return df
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  df = load_data()
24
 
requirements.txt CHANGED
@@ -2,4 +2,4 @@ streamlit
2
  pandas
3
  sentence-transformers
4
  openai
5
- loguru
 
2
  pandas
3
  sentence-transformers
4
  openai
5
+ loguru