Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import torch
|
|
2 |
from peft import PeftModel, PeftConfig
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
4 |
|
5 |
-
peft_model_id = f"
|
6 |
config = PeftConfig.from_pretrained(peft_model_id)
|
7 |
model = AutoModelForCausalLM.from_pretrained(
|
8 |
config.base_model_name_or_path,
|
@@ -38,6 +38,6 @@ if __name__ == "__main__":
|
|
38 |
gr.inputs.Textbox(lines=5, label="Product Description"),
|
39 |
],
|
40 |
gr.outputs.Textbox(label="Ad"),
|
41 |
-
title="
|
42 |
-
description="
|
43 |
).launch()
|
|
|
2 |
from peft import PeftModel, PeftConfig
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
4 |
|
5 |
+
peft_model_id = f"alimrb/eff24"
|
6 |
config = PeftConfig.from_pretrained(peft_model_id)
|
7 |
model = AutoModelForCausalLM.from_pretrained(
|
8 |
config.base_model_name_or_path,
|
|
|
38 |
gr.inputs.Textbox(lines=5, label="Product Description"),
|
39 |
],
|
40 |
gr.outputs.Textbox(label="Ad"),
|
41 |
+
title="EFF24",
|
42 |
+
description="EFF24 is a generative model that generates ads for products.",
|
43 |
).launch()
|