Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ ROOT = Path(__file__).resolve().parent
|
|
| 27 |
sys.path.insert(0, str(ROOT))
|
| 28 |
|
| 29 |
TEXT_MODEL = "VishnuPJ/MalayaLLM_7B_Base"
|
| 30 |
-
CHECKPOINT = ROOT / "
|
| 31 |
MODEL_DIR = ROOT / ".hf_model_cache" / "VishnuPJ__MalayaLLM_7B_Base"
|
| 32 |
|
| 33 |
# Download one text backbone only. Keeping a single language model reduces
|
|
@@ -74,7 +74,7 @@ def predict(image_path, text, threshold):
|
|
| 74 |
with gr.Blocks(title="Fuse-MD Demo") as demo:
|
| 75 |
gr.Markdown(
|
| 76 |
"# Fuse-MD\n"
|
| 77 |
-
"Upload a
|
| 78 |
"whether it contains misogynistic content."
|
| 79 |
)
|
| 80 |
with gr.Row():
|
|
|
|
| 27 |
sys.path.insert(0, str(ROOT))
|
| 28 |
|
| 29 |
TEXT_MODEL = "VishnuPJ/MalayaLLM_7B_Base"
|
| 30 |
+
CHECKPOINT = ROOT / "custom_tamil_llamavit_fusion_element.pth"
|
| 31 |
MODEL_DIR = ROOT / ".hf_model_cache" / "VishnuPJ__MalayaLLM_7B_Base"
|
| 32 |
|
| 33 |
# Download one text backbone only. Keeping a single language model reduces
|
|
|
|
| 74 |
with gr.Blocks(title="Fuse-MD Demo") as demo:
|
| 75 |
gr.Markdown(
|
| 76 |
"# Fuse-MD\n"
|
| 77 |
+
"Upload a Tamil meme and enter its transcription. The model predicts "
|
| 78 |
"whether it contains misogynistic content."
|
| 79 |
)
|
| 80 |
with gr.Row():
|