Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ model = AutoModelForVision2Seq.from_pretrained("HuggingFaceTB/SmolVLM-Instruct",
|
|
16 |
#_attn_implementation="flash_attention_2"
|
17 |
).to("cuda")
|
18 |
|
19 |
-
|
20 |
def model_inference(
|
21 |
input_dict, history, decoding_strategy, temperature, max_new_tokens,
|
22 |
repetition_penalty, top_p
|
|
|
16 |
#_attn_implementation="flash_attention_2"
|
17 |
).to("cuda")
|
18 |
|
19 |
+
#@spaces.GPU
|
20 |
def model_inference(
|
21 |
input_dict, history, decoding_strategy, temperature, max_new_tokens,
|
22 |
repetition_penalty, top_p
|