Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ model = LlavaGpt2ForCausalLM.from_pretrained(
|
|
23 |
)
|
24 |
tokenizer = transformers.AutoTokenizer.from_pretrained(
|
25 |
model_path,
|
26 |
-
model_max_length=
|
27 |
padding_side="right",
|
28 |
use_fast=False,
|
29 |
)
|
@@ -179,4 +179,4 @@ with gr.Blocks() as demo:
|
|
179 |
|
180 |
|
181 |
if __name__ == "__main__":
|
182 |
-
demo.queue().launch(
|
|
|
23 |
)
|
24 |
tokenizer = transformers.AutoTokenizer.from_pretrained(
|
25 |
model_path,
|
26 |
+
model_max_length=1532,
|
27 |
padding_side="right",
|
28 |
use_fast=False,
|
29 |
)
|
|
|
179 |
|
180 |
|
181 |
if __name__ == "__main__":
|
182 |
+
demo.queue().launch()
|