Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,6 +14,7 @@ from mplug_owl_video.processing_mplug_owl import MplugOwlImageProcessor, MplugOw
|
|
| 14 |
from peft import LoraConfig, get_peft_model
|
| 15 |
from data_utils.xgpt3_dataset import MultiModalDataset
|
| 16 |
from utils import batchify
|
|
|
|
| 17 |
|
| 18 |
import gradio as gr
|
| 19 |
from entailment_inference import get_scores
|
|
@@ -35,8 +36,9 @@ def modify_keys(state_dict):
|
|
| 35 |
|
| 36 |
return new_state_dict
|
| 37 |
|
| 38 |
-
pretrained_ckpt = "
|
| 39 |
-
trained_ckpt = "owl-con
|
|
|
|
| 40 |
|
| 41 |
tokenizer = LlamaTokenizer.from_pretrained(pretrained_ckpt)
|
| 42 |
image_processor = MplugOwlImageProcessor.from_pretrained(pretrained_ckpt)
|
|
|
|
| 14 |
from peft import LoraConfig, get_peft_model
|
| 15 |
from data_utils.xgpt3_dataset import MultiModalDataset
|
| 16 |
from utils import batchify
|
| 17 |
+
from huggingface_hub import hf_hub_download
|
| 18 |
|
| 19 |
import gradio as gr
|
| 20 |
from entailment_inference import get_scores
|
|
|
|
| 36 |
|
| 37 |
return new_state_dict
|
| 38 |
|
| 39 |
+
pretrained_ckpt = "MAGAer13/mplug-owl-llama-7b-video/"
|
| 40 |
+
trained_ckpt = hf_hub_download(repo_id="videocon/owl-con", filename="pytorch_model.bin", repo_type="model")
|
| 41 |
+
|
| 42 |
|
| 43 |
tokenizer = LlamaTokenizer.from_pretrained(pretrained_ckpt)
|
| 44 |
image_processor = MplugOwlImageProcessor.from_pretrained(pretrained_ckpt)
|