Spaces:
Running
Running
lingyit1108
commited on
Commit
•
dd6d0f9
1
Parent(s):
ed54e24
point streamlit to streamlit_app
Browse files
README.md
CHANGED
@@ -6,7 +6,7 @@ colorTo: yellow
|
|
6 |
sdk: streamlit
|
7 |
python_version: 3.9.18
|
8 |
sdk_version: 1.29.0
|
9 |
-
app_file:
|
10 |
pinned: false
|
11 |
license: mit
|
12 |
---
|
|
|
6 |
sdk: streamlit
|
7 |
python_version: 3.9.18
|
8 |
sdk_version: 1.29.0
|
9 |
+
app_file: streamlit_app.py
|
10 |
pinned: false
|
11 |
license: mit
|
12 |
---
|
app.py
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
import streamlit as st
|
2 |
-
import os
|
3 |
-
|
4 |
-
try:
|
5 |
-
file_ls_str = ", ".join(os.listdir("raw_documents"))
|
6 |
-
except:
|
7 |
-
file_ls_str = "NA"
|
8 |
-
|
9 |
-
st.write(f"Hello World! File list: {file_ls_str}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main.py
CHANGED
@@ -37,7 +37,7 @@ def main():
|
|
37 |
|
38 |
separator = "\n\n"
|
39 |
eval_questions = []
|
40 |
-
with open('raw_documents/eval_questions.txt', 'r') as file:
|
41 |
content = file.read()
|
42 |
|
43 |
for question in content.split(separator):
|
@@ -59,8 +59,8 @@ def main():
|
|
59 |
|
60 |
records, feedback = tru.get_records_and_feedback(app_ids=[])
|
61 |
|
62 |
-
os.makedirs("results", exist_ok=True)
|
63 |
-
records.to_csv("results/records.csv", index=False)
|
64 |
|
65 |
print(tru.db.engine.url.render_as_string(hide_password=False))
|
66 |
# tru.run_dashboard()
|
|
|
37 |
|
38 |
separator = "\n\n"
|
39 |
eval_questions = []
|
40 |
+
with open('./raw_documents/eval_questions.txt', 'r') as file:
|
41 |
content = file.read()
|
42 |
|
43 |
for question in content.split(separator):
|
|
|
59 |
|
60 |
records, feedback = tru.get_records_and_feedback(app_ids=[])
|
61 |
|
62 |
+
os.makedirs("./results", exist_ok=True)
|
63 |
+
records.to_csv("./results/records.csv", index=False)
|
64 |
|
65 |
print(tru.db.engine.url.render_as_string(hide_password=False))
|
66 |
# tru.run_dashboard()
|