Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,6 @@ model = AutoModelForCausalLM.from_pretrained(model_path, torch_dtype=torch.bfloa
|
|
9 |
|
10 |
@spaces.GPU
|
11 |
def predict(input_asm):
|
12 |
-
input_asm = '\n'.join(c_func).strip()
|
13 |
before = f"# This is the assembly code:\n"#prompt
|
14 |
after = "\n# What is the source code?\n"#prompt
|
15 |
input_prompt = before+input_asm.strip()+after
|
|
|
9 |
|
10 |
@spaces.GPU
|
11 |
def predict(input_asm):
|
|
|
12 |
before = f"# This is the assembly code:\n"#prompt
|
13 |
after = "\n# What is the source code?\n"#prompt
|
14 |
input_prompt = before+input_asm.strip()+after
|