Spaces:
Running
on
Zero
Running
on
Zero
AdrienB134
commited on
Commit
•
f0726db
1
Parent(s):
c785d73
zgr
Browse files
app.py
CHANGED
@@ -50,6 +50,7 @@ def model_inference(
|
|
50 |
images, text, assistant_prefix= None, decoding_strategy = "Greedy", temperature= 0.4, max_new_tokens=512,
|
51 |
repetition_penalty=1.2, top_p=0.8
|
52 |
):
|
|
|
53 |
if text == "" and not images:
|
54 |
gr.Error("Please input a query and optionally image(s).")
|
55 |
|
|
|
50 |
images, text, assistant_prefix= None, decoding_strategy = "Greedy", temperature= 0.4, max_new_tokens=512,
|
51 |
repetition_penalty=1.2, top_p=0.8
|
52 |
):
|
53 |
+
print(type(images))
|
54 |
if text == "" and not images:
|
55 |
gr.Error("Please input a query and optionally image(s).")
|
56 |
|