Spaces:
Sleeping
Sleeping
grpathak22
commited on
Commit
•
1c50f5e
1
Parent(s):
de57c79
Update app.py
Browse files
app.py
CHANGED
@@ -62,3 +62,16 @@ trainer = Trainer(
|
|
62 |
# Fine-tune the model
|
63 |
trainer.train()
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
# Fine-tune the model
|
63 |
trainer.train()
|
64 |
|
65 |
+
prompt = "मस्तवाल हत्ती चाळवणं"
|
66 |
+
|
67 |
+
# Tokenize the input prompt
|
68 |
+
input_ids = tokenizer.encode(prompt, return_tensors='pt')
|
69 |
+
|
70 |
+
# Generate the output
|
71 |
+
output_ids = model.generate(input_ids, max_length=512)
|
72 |
+
|
73 |
+
# Decode the output to text
|
74 |
+
topic = st.text_input("Enter your proverb: ")
|
75 |
+
output_text = tokenizer.decode(output_ids[0], skip_special_tokens=True)
|
76 |
+
st.write(output_text)
|
77 |
+
|