Spaces:
Sleeping
Sleeping
Increase duration to 120s
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ description = """
|
|
| 13 |
This is a space for testing the [LLM4Decompile 6.7B V2 model](https://huggingface.co/LLM4Binary/llm4decompile-6.7b-v2). It expects to be given a decompiled function output by Ghidra. I simply copy and paste from the Ghidra GUI, but this is not the method recommended by the official model page, so YMMV.
|
| 14 |
"""
|
| 15 |
|
| 16 |
-
@spaces.GPU
|
| 17 |
def predict(input_asm):
|
| 18 |
before = f"# This is the assembly code:\n"#prompt
|
| 19 |
after = "\n# What is the source code?\n"#prompt
|
|
|
|
| 13 |
This is a space for testing the [LLM4Decompile 6.7B V2 model](https://huggingface.co/LLM4Binary/llm4decompile-6.7b-v2). It expects to be given a decompiled function output by Ghidra. I simply copy and paste from the Ghidra GUI, but this is not the method recommended by the official model page, so YMMV.
|
| 14 |
"""
|
| 15 |
|
| 16 |
+
@spaces.GPU(duration=120)
|
| 17 |
def predict(input_asm):
|
| 18 |
before = f"# This is the assembly code:\n"#prompt
|
| 19 |
after = "\n# What is the source code?\n"#prompt
|