Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ st.write(" ")
|
|
51 |
|
52 |
pipe = pipeline('sentiment-analysis')
|
53 |
text = st.text_area('Instrucci贸n')
|
54 |
-
context = st.text_area('
|
55 |
|
56 |
|
57 |
|
@@ -60,9 +60,9 @@ tokenizer = AutoTokenizer.from_pretrained("lagy/carballo_finetuned")
|
|
60 |
model.eval()
|
61 |
|
62 |
if st.button('Generate'):
|
63 |
-
st.write("--")
|
64 |
out = pipe(text)
|
65 |
#st.json(out)
|
66 |
-
|
|
|
67 |
|
68 |
|
|
|
51 |
|
52 |
pipe = pipeline('sentiment-analysis')
|
53 |
text = st.text_area('Instrucci贸n')
|
54 |
+
context = st.text_area('Contexto')
|
55 |
|
56 |
|
57 |
|
|
|
60 |
model.eval()
|
61 |
|
62 |
if st.button('Generate'):
|
|
|
63 |
out = pipe(text)
|
64 |
#st.json(out)
|
65 |
+
output = generate(model,instruction,context)
|
66 |
+
st.caption(output)
|
67 |
|
68 |
|