Spaces:
Sleeping
Sleeping
Commit ·
e2f9f6a
1
Parent(s): 6ab20b3
fix example
Browse files
app.py
CHANGED
|
@@ -45,20 +45,16 @@ fielddecoder_model = AutoModelForCausalLM.from_pretrained(
|
|
| 45 |
"ejschwartz/resym-vardecoder", torch_dtype=torch.bfloat16, device_map="auto"
|
| 46 |
)
|
| 47 |
|
| 48 |
-
example = r"""
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
"v5"
|
| 59 |
-
]
|
| 60 |
-
]
|
| 61 |
-
}
|
| 62 |
}"""
|
| 63 |
|
| 64 |
|
|
@@ -106,7 +102,7 @@ def infer(code):
|
|
| 106 |
demo = gr.Interface(
|
| 107 |
fn=infer,
|
| 108 |
inputs=[
|
| 109 |
-
gr.Textbox(lines=10, value=
|
| 110 |
],
|
| 111 |
outputs=[gr.Text(label="Var Decoder Output"),
|
| 112 |
gr.Text(label="Generated Variable List")],
|
|
|
|
| 45 |
"ejschwartz/resym-vardecoder", torch_dtype=torch.bfloat16, device_map="auto"
|
| 46 |
)
|
| 47 |
|
| 48 |
+
example = r"""__int64 __fastcall sub_410D81(__int64 a1, __int64 a2, __int64 a3)
|
| 49 |
+
{
|
| 50 |
+
int v4; // [rsp+20h] [rbp-20h] BYREF
|
| 51 |
+
__int64 v5; // [rsp+28h] [rbp-18h]
|
| 52 |
+
|
| 53 |
+
if ( !a1 || !a2 || !a3 )
|
| 54 |
+
return 0LL;
|
| 55 |
+
v4 = 5;
|
| 56 |
+
v5 = a3;
|
| 57 |
+
return sub_411142(a1, a2, &v4);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
}"""
|
| 59 |
|
| 60 |
|
|
|
|
| 102 |
demo = gr.Interface(
|
| 103 |
fn=infer,
|
| 104 |
inputs=[
|
| 105 |
+
gr.Textbox(lines=10, value=example),
|
| 106 |
],
|
| 107 |
outputs=[gr.Text(label="Var Decoder Output"),
|
| 108 |
gr.Text(label="Generated Variable List")],
|