Spaces:
Sleeping
Sleeping
Se agrega código de Streamlit
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import torch
|
2 |
from transformers import pipeline
|
|
|
3 |
|
4 |
model_id = "meta-llama/Llama-3.2-1B"
|
5 |
|
@@ -10,4 +11,7 @@ pipe = pipeline(
|
|
10 |
device_map="auto"
|
11 |
)
|
12 |
|
|
|
|
|
|
|
13 |
pipe("The key to life is")
|
|
|
1 |
import torch
|
2 |
from transformers import pipeline
|
3 |
+
import streamlit as st
|
4 |
|
5 |
model_id = "meta-llama/Llama-3.2-1B"
|
6 |
|
|
|
11 |
device_map="auto"
|
12 |
)
|
13 |
|
14 |
+
input = st.text_input("Ingrese el Promt")
|
15 |
+
st.write(pipe(input))
|
16 |
+
|
17 |
pipe("The key to life is")
|