Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -32,10 +32,10 @@ def generate(image, instruction=DEFAULT_INPUT, sampling=False, temperature=0.7,
|
|
32 |
repo.to(DEVICE)
|
33 |
|
34 |
print(image)
|
35 |
-
|
36 |
-
|
37 |
|
38 |
-
inputs = [{"role": "user", "content": [
|
39 |
|
40 |
parameters = {
|
41 |
"sampling": sampling,
|
|
|
32 |
repo.to(DEVICE)
|
33 |
|
34 |
print(image)
|
35 |
+
image_data = Image.fromarray(image_array.astype('uint8'), 'RGB')
|
36 |
+
print(image_data, instruction)
|
37 |
|
38 |
+
inputs = [{"role": "user", "content": [image_data, instruction]}]
|
39 |
|
40 |
parameters = {
|
41 |
"sampling": sampling,
|