Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,13 +7,14 @@ from model import ToyModel
|
|
| 7 |
"""
|
| 8 |
Model specification
|
| 9 |
"""
|
| 10 |
-
|
| 11 |
-
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
def chat(image_input, text_input):
|
| 15 |
-
|
| 16 |
-
return
|
| 17 |
|
| 18 |
|
| 19 |
"""
|
|
|
|
| 7 |
"""
|
| 8 |
Model specification
|
| 9 |
"""
|
| 10 |
+
vision_model_path = 'clip-vit-base-patch32'
|
| 11 |
+
language_model_path = 'gpt2'
|
| 12 |
+
model = ToyModel(vision_model_path, language_model_path)
|
| 13 |
|
| 14 |
|
| 15 |
def chat(image_input, text_input):
|
| 16 |
+
text_output = model.chat(image_input, text_input)
|
| 17 |
+
return image_input, text_output
|
| 18 |
|
| 19 |
|
| 20 |
"""
|