Spaces:
Running
Running
Commit
·
036f81f
1
Parent(s):
569beb5
Update for multiple predictions
Browse files- Dockerfile +1 -1
- main.py +4 -2
Dockerfile
CHANGED
@@ -27,7 +27,7 @@ RUN unzip ghidrathon/Ghidrathon-v4.0.0.zip -d /ghidra/Ghidra/Extensions
|
|
27 |
|
28 |
WORKDIR /
|
29 |
|
30 |
-
RUN git clone -b
|
31 |
#ADD ./DIRTY /DIRTY
|
32 |
|
33 |
RUN --mount=type=cache,target=/root/.cache pip install --break-system-packages --upgrade -r /DIRTY/requirements.txt
|
|
|
27 |
|
28 |
WORKDIR /
|
29 |
|
30 |
+
RUN git clone -b nonbest https://github.com/edmcman/DIRTY # 10-3-24 3.3
|
31 |
#ADD ./DIRTY /DIRTY
|
32 |
|
33 |
RUN --mount=type=cache,target=/root/.cache pip install --break-system-packages --upgrade -r /DIRTY/requirements.txt
|
main.py
CHANGED
@@ -184,14 +184,16 @@ with gr.Blocks() as demo:
|
|
184 |
#print(json_info)
|
185 |
|
186 |
# group by location
|
187 |
-
src_filtered = json_info['other_info']['source_filtered']
|
188 |
keyfunc = lambda x: x[1]
|
189 |
src_filtered = sorted(src_filtered.items(), key=keyfunc)
|
190 |
src_filtered = {k: [v1 for v1, v2 in v] for k, v in itertools.groupby(src_filtered, keyfunc)}
|
191 |
|
192 |
model_output_info = {
|
193 |
'model_output': json_info["model_output"],
|
194 |
-
'
|
|
|
|
|
195 |
}
|
196 |
|
197 |
return {
|
|
|
184 |
#print(json_info)
|
185 |
|
186 |
# group by location
|
187 |
+
src_filtered = json_info['other_info']['example_info']['source_filtered']
|
188 |
keyfunc = lambda x: x[1]
|
189 |
src_filtered = sorted(src_filtered.items(), key=keyfunc)
|
190 |
src_filtered = {k: [v1 for v1, v2 in v] for k, v in itertools.groupby(src_filtered, keyfunc)}
|
191 |
|
192 |
model_output_info = {
|
193 |
'model_output': json_info["model_output"],
|
194 |
+
'model_output_multi': json_info["model_output_multi"],
|
195 |
+
'dup_location_vars': src_filtered,
|
196 |
+
'other_outputs': json_info['other_info']['other_outputs']
|
197 |
}
|
198 |
|
199 |
return {
|