Spaces:
Runtime error
Runtime error
howard-hou
commited on
Commit
·
ced196e
1
Parent(s):
f0c200a
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ from rwkv.utils import PIPELINE, PIPELINE_ARGS
|
|
16 |
pipeline = PIPELINE(model, "rwkv_vocab_v20230424")
|
17 |
|
18 |
##########################################################################
|
19 |
-
from
|
20 |
emb_mixer = EmbeddingMixer(model.w["emb.weight"], num_image_embeddings=4096)
|
21 |
config = VisualEncoderConfig(n_embd=model.args.n_embd,
|
22 |
vision_tower_name='openai/clip-vit-large-patch14-336',
|
|
|
16 |
pipeline = PIPELINE(model, "rwkv_vocab_v20230424")
|
17 |
|
18 |
##########################################################################
|
19 |
+
from modeling import VisualEncoder, EmbeddingMixer, VisualEncoderConfig
|
20 |
emb_mixer = EmbeddingMixer(model.w["emb.weight"], num_image_embeddings=4096)
|
21 |
config = VisualEncoderConfig(n_embd=model.args.n_embd,
|
22 |
vision_tower_name='openai/clip-vit-large-patch14-336',
|