Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -1
src/streamlit_app.py
CHANGED
@@ -82,7 +82,8 @@ with tab2:
|
|
82 |
st.markdown("A random question from GSM8K will be shown. Click below to test the model.")
|
83 |
|
84 |
if st.button("Run GSM8K Sample"):
|
85 |
-
|
|
|
86 |
files = [f for f in os.listdir(gsm8k_path) if f.endswith(".jsonl")]
|
87 |
if not files:
|
88 |
st.error("No JSON files found in data/gsm8k.")
|
|
|
82 |
st.markdown("A random question from GSM8K will be shown. Click below to test the model.")
|
83 |
|
84 |
if st.button("Run GSM8K Sample"):
|
85 |
+
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
86 |
+
gsm8k_path = os.path.join(ROOT_DIR, "data", "gsm8k")
|
87 |
files = [f for f in os.listdir(gsm8k_path) if f.endswith(".jsonl")]
|
88 |
if not files:
|
89 |
st.error("No JSON files found in data/gsm8k.")
|