Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -76,6 +76,7 @@ def generate(image, video, audio, instruction=DEFAULT_INPUT, sampling=False, tem
|
|
76 |
return "No input provided."
|
77 |
|
78 |
parameters = {
|
|
|
79 |
"tokenizer": tokenizer,
|
80 |
"processor": processor,
|
81 |
"sampling": sampling,
|
@@ -86,7 +87,7 @@ def generate(image, video, audio, instruction=DEFAULT_INPUT, sampling=False, tem
|
|
86 |
"max_new_tokens": max_tokens,
|
87 |
}
|
88 |
|
89 |
-
output = repo.chat(
|
90 |
|
91 |
print(output)
|
92 |
|
|
|
76 |
return "No input provided."
|
77 |
|
78 |
parameters = {
|
79 |
+
"msgs": inputs,
|
80 |
"tokenizer": tokenizer,
|
81 |
"processor": processor,
|
82 |
"sampling": sampling,
|
|
|
87 |
"max_new_tokens": max_tokens,
|
88 |
}
|
89 |
|
90 |
+
output = repo.chat(**parameters)
|
91 |
|
92 |
print(output)
|
93 |
|