Spaces:
Sleeping
Sleeping
Commit
·
deea315
1
Parent(s):
fc46b6a
Try JSON viewer
Browse files
app.py
CHANGED
@@ -70,14 +70,15 @@ def predict(code):
|
|
70 |
)
|
71 |
print(f"Pipe out: {repr(pipe_out)}")
|
72 |
|
73 |
-
|
74 |
|
|
|
75 |
|
76 |
|
77 |
demo = gr.Interface(
|
78 |
fn=predict,
|
79 |
inputs=gr.Text(label="Hex-Rays decompiler output"),
|
80 |
-
outputs=gr.Text(label="Aidapal Output"),
|
81 |
description=frontmatter.load("README.md").content,
|
82 |
examples=examples
|
83 |
)
|
|
|
70 |
)
|
71 |
print(f"Pipe out: {repr(pipe_out)}")
|
72 |
|
73 |
+
output = pipe_out[0]["generated_text"]
|
74 |
|
75 |
+
return output, output
|
76 |
|
77 |
|
78 |
demo = gr.Interface(
|
79 |
fn=predict,
|
80 |
inputs=gr.Text(label="Hex-Rays decompiler output"),
|
81 |
+
outputs=[gr.Text(label="Aidapal Output as JSON"), gr.Text(label="Raw Aidapal Output")],
|
82 |
description=frontmatter.load("README.md").content,
|
83 |
examples=examples
|
84 |
)
|