Spaces:
Running
Running
changed the user guide
Browse files- .DS_Store +0 -0
- app.py +15 -15
- fileHandler/ER-successful-strategies.csv +0 -0
- fileHandler/ER-unsuccessful-strategies.csv +0 -0
- fileHandler/ME-successful-strategies.csv +0 -0
- fileHandler/ME-unsuccessful-strategies.csv +0 -0
- fileHandler/result.txt +1 -5
- fileHandler/roc_data.pkl +3 -0
- fileHandler/roc_data2.pkl +3 -0
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
app.py
CHANGED
@@ -748,7 +748,7 @@ content = """
|
|
748 |
<h3 style="color: white; text-align: center">
|
749 |
<a href="https://drive.google.com/file/d/1lbEpg8Se1ugTtkjreD8eXIg7qrplhWan/view" style="color: gr.themes.colors.red; text-decoration: none;">Link To Paper</a> |
|
750 |
<a href="https://github.com/Syudu41/ASTRA---Gates-Project" style="color: #1E90FF; text-decoration: none;">GitHub</a> |
|
751 |
-
<a href="https://
|
752 |
|
753 |
|
754 |
</h3>
|
@@ -790,6 +790,9 @@ When the equivalent ratios are easy to compute (integral values), ER is much mor
|
|
790 |
</li>
|
791 |
</ul>
|
792 |
</li>
|
|
|
|
|
|
|
793 |
</ol>
|
794 |
"""
|
795 |
# CSS styling for white text
|
@@ -1111,18 +1114,13 @@ label_to_filename = {
|
|
1111 |
}
|
1112 |
# Function to provide the selected file path
|
1113 |
def provide_file_path(label_name):
|
1114 |
-
file_name=label_to_filename.get(label_name, None)
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
"the strategy visualization."
|
1122 |
-
)
|
1123 |
-
return f"{FILE_DIR}/{file_name}" if file_name else None, gr.update(visible=True,value=dynamic_text)
|
1124 |
-
# file_path = os.path.join(FILE_DIR, file_name)
|
1125 |
-
# return file_path
|
1126 |
|
1127 |
with gr.Blocks(theme='gstaff/sketch', css=custom_css) as demo:
|
1128 |
|
@@ -1173,12 +1171,14 @@ with gr.Blocks(theme='gstaff/sketch', css=custom_css) as demo:
|
|
1173 |
with gr.Row():
|
1174 |
file_dropdown = gr.Dropdown(choices=list_files(), label="Select a strategy from the dropdown")
|
1175 |
download_button = gr.Button("Generate Strategies")
|
1176 |
-
|
|
|
|
|
1177 |
|
1178 |
download_button.click(
|
1179 |
fn=provide_file_path,
|
1180 |
inputs=[file_dropdown],
|
1181 |
-
outputs=[
|
1182 |
)
|
1183 |
|
1184 |
btn.click(
|
|
|
748 |
<h3 style="color: white; text-align: center">
|
749 |
<a href="https://drive.google.com/file/d/1lbEpg8Se1ugTtkjreD8eXIg7qrplhWan/view" style="color: gr.themes.colors.red; text-decoration: none;">Link To Paper</a> |
|
750 |
<a href="https://github.com/Syudu41/ASTRA---Gates-Project" style="color: #1E90FF; text-decoration: none;">GitHub</a> |
|
751 |
+
<a href="https://drive.google.com/file/d/1wussSAYV5WfRSgYNEDgxWNqMUNoiu65u/view" style="color: #1E90FF; text-decoration: none;">User Guide</a>
|
752 |
|
753 |
|
754 |
</h3>
|
|
|
790 |
</li>
|
791 |
</ul>
|
792 |
</li>
|
793 |
+
<li style="color: white;">Generate strategies from the AI model and visualize the strategies .csv files using the path analysis web-app.
|
794 |
+
Refer to the <a href="https://drive.google.com/file/d/1wussSAYV5WfRSgYNEDgxWNqMUNoiu65u/view" style="color: #1E90FF; text-decoration: none;">user guide </a> for more details on how to interpret the strategy visualization.
|
795 |
+
|
796 |
</ol>
|
797 |
"""
|
798 |
# CSS styling for white text
|
|
|
1114 |
}
|
1115 |
# Function to provide the selected file path
|
1116 |
def provide_file_path(label_name):
|
1117 |
+
file_name = label_to_filename.get(label_name, None)
|
1118 |
+
if file_name:
|
1119 |
+
file_path = f"{FILE_DIR}/{file_name}"
|
1120 |
+
dynamic_text = "π [Visualize the strategies](https://path-analysis.vercel.app/)"
|
1121 |
+
return file_path, gr.update(value=dynamic_text, visible=True)
|
1122 |
+
return None, gr.update(visible=False)
|
1123 |
+
|
|
|
|
|
|
|
|
|
|
|
1124 |
|
1125 |
with gr.Blocks(theme='gstaff/sketch', css=custom_css) as demo:
|
1126 |
|
|
|
1171 |
with gr.Row():
|
1172 |
file_dropdown = gr.Dropdown(choices=list_files(), label="Select a strategy from the dropdown")
|
1173 |
download_button = gr.Button("Generate Strategies")
|
1174 |
+
with gr.Row():
|
1175 |
+
file_output = gr.File(label="Download File")
|
1176 |
+
visualize_markdown = gr.Markdown(visible=False)
|
1177 |
|
1178 |
download_button.click(
|
1179 |
fn=provide_file_path,
|
1180 |
inputs=[file_dropdown],
|
1181 |
+
outputs=[file_output, visualize_markdown]
|
1182 |
)
|
1183 |
|
1184 |
btn.click(
|
fileHandler/ER-successful-strategies.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|
fileHandler/ER-unsuccessful-strategies.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|
fileHandler/ME-successful-strategies.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|
fileHandler/ME-unsuccessful-strategies.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|
fileHandler/result.txt
CHANGED
@@ -3,9 +3,5 @@ total_acc: 69.00702106318957
|
|
3 |
precisions: 0.7236623191454734
|
4 |
recalls: 0.6900702106318957
|
5 |
f1_scores: 0.6802420656474512
|
6 |
-
|
7 |
-
time_taken_from_start: 2.1567678451538086
|
8 |
-
=======
|
9 |
-
time_taken_from_start: 39.65812015533447
|
10 |
-
>>>>>>> 890efcc1f23279edda21b3cc2f50174aea7ddb43
|
11 |
auc_score: 0.7457100293916334
|
|
|
3 |
precisions: 0.7236623191454734
|
4 |
recalls: 0.6900702106318957
|
5 |
f1_scores: 0.6802420656474512
|
6 |
+
time_taken_from_start: 2.079533815383911
|
|
|
|
|
|
|
|
|
7 |
auc_score: 0.7457100293916334
|
fileHandler/roc_data.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2483f35aa06ef8983623602f690eb3fe006654c79d448f4f82a913b4862e34e9
|
3 |
+
size 9437
|
fileHandler/roc_data2.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0578bbc08b428a1f54707fc3aca6aa1063e045033cb007f8ba3361f1aace43df
|
3 |
+
size 28023
|