Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ from transformers import BitsAndBytesConfig, pipeline
|
|
8 |
import re
|
9 |
import time
|
10 |
|
|
|
11 |
model_id = "llava-hf/llava-1.5-7b-hf"
|
12 |
quantization_config = BitsAndBytesConfig(
|
13 |
load_in_4bit=True,
|
@@ -41,6 +42,7 @@ def infer(image, prompt,
|
|
41 |
min_length,
|
42 |
top_p):
|
43 |
print("类型是:",type(image))
|
|
|
44 |
outputs = pipe(images=image, prompt=prompt,
|
45 |
generate_kwargs={"temperature":temperature,
|
46 |
"length_penalty":length_penalty,
|
|
|
8 |
import re
|
9 |
import time
|
10 |
|
11 |
+
Description = "YOLO"
|
12 |
model_id = "llava-hf/llava-1.5-7b-hf"
|
13 |
quantization_config = BitsAndBytesConfig(
|
14 |
load_in_4bit=True,
|
|
|
42 |
min_length,
|
43 |
top_p):
|
44 |
print("类型是:",type(image))
|
45 |
+
print(temperature, length_penalty, repetition_penalty, max_length, min_length, top_p)
|
46 |
outputs = pipe(images=image, prompt=prompt,
|
47 |
generate_kwargs={"temperature":temperature,
|
48 |
"length_penalty":length_penalty,
|