Spaces:
Sleeping
Sleeping
Jyotiyadav
commited on
Commit
•
3d4db42
1
Parent(s):
be95230
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import T5ForConditionalGeneration, T5Tokenizer
|
|
3 |
from textwrap import fill
|
4 |
|
5 |
# Load fine-tuned model and tokenizer
|
6 |
-
last_checkpoint = "Jyotiyadav/
|
7 |
finetuned_model = T5ForConditionalGeneration.from_pretrained(last_checkpoint)
|
8 |
tokenizer = T5Tokenizer.from_pretrained(last_checkpoint)
|
9 |
|
@@ -28,10 +28,10 @@ iface = gr.Interface(
|
|
28 |
title="Question Answering with T5 Model",
|
29 |
description="Enter your question to get the answer.",
|
30 |
examples=[
|
31 |
-
["
|
32 |
-
["
|
33 |
-
["
|
34 |
-
["
|
35 |
]
|
36 |
)
|
37 |
|
|
|
3 |
from textwrap import fill
|
4 |
|
5 |
# Load fine-tuned model and tokenizer
|
6 |
+
last_checkpoint = "Jyotiyadav/model2.0"
|
7 |
finetuned_model = T5ForConditionalGeneration.from_pretrained(last_checkpoint)
|
8 |
tokenizer = T5Tokenizer.from_pretrained(last_checkpoint)
|
9 |
|
|
|
28 |
title="Question Answering with T5 Model",
|
29 |
description="Enter your question to get the answer.",
|
30 |
examples=[
|
31 |
+
["For store number 1 in the city of Quito, with products from various categories such as AUTOMOTIVE, during a 0 on 2017-8-16, with no, cluster 13, and WTI crude oil price at $46.8, what were the total sales on that day?"],
|
32 |
+
["For store number 1 in the city of Quito, with products from various categories such as BABY CARE, during a 0 on 2017-8-16, with no, cluster 13, and WTI crude oil price at $46.8, what were the total sales on that day?"],
|
33 |
+
["For store number 1 in the city of Quito, with products from various categories such as BEAUTY, during a 0 on 2017-8-16, with promotions, cluster 13, and WTI crude oil price at $46.8, what were the total sales on that day?"],
|
34 |
+
["For store number 1 in the city of Quito, with products from various categories such as HOME CARE, during a 0 on 2017-8-16, with promotions, cluster 13, and WTI crude oil price at $46.8, what were the total sales on that day?"]
|
35 |
]
|
36 |
)
|
37 |
|