Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def multimodal_prompt(user_input, system_prompt="You are an expert medical analy
|
|
29 |
model_inputs = encodeds.to(device)
|
30 |
|
31 |
# Generate a response using the model
|
32 |
-
output =
|
33 |
**model_inputs,
|
34 |
max_length=500,
|
35 |
use_cache=True,
|
|
|
29 |
model_inputs = encodeds.to(device)
|
30 |
|
31 |
# Generate a response using the model
|
32 |
+
output = peft_model.generate(
|
33 |
**model_inputs,
|
34 |
max_length=500,
|
35 |
use_cache=True,
|