Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,8 +32,10 @@ def image_vision(image_input_path, prompt):
|
|
| 32 |
'tokenizer': tokenizer,
|
| 33 |
}
|
| 34 |
return_dict = model.predict_forward(**input_dict)
|
|
|
|
| 35 |
answer = return_dict["prediction"] # the text format answer
|
| 36 |
-
|
|
|
|
| 37 |
|
| 38 |
def main_infer(image_input_path, prompt):
|
| 39 |
|
|
|
|
| 32 |
'tokenizer': tokenizer,
|
| 33 |
}
|
| 34 |
return_dict = model.predict_forward(**input_dict)
|
| 35 |
+
print(return_dict)
|
| 36 |
answer = return_dict["prediction"] # the text format answer
|
| 37 |
+
|
| 38 |
+
return answer
|
| 39 |
|
| 40 |
def main_infer(image_input_path, prompt):
|
| 41 |
|