UnionJack commited on
Commit
e4e73f5
·
verified ·
1 Parent(s): a9a2e1a

Se agrega código de Streamlit

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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")