ancerlop commited on
Commit
88a0841
1 Parent(s): ea72a26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,5 +1,9 @@
1
  # Importar Gradio
2
  import gradio as gr
 
 
 
 
3
 
4
  # Funci贸n para generar texto
5
  def generar_texto(prompt):
 
1
  # Importar Gradio
2
  import gradio as gr
3
+ # Use a pipeline as a high-level helper
4
+ from transformers import pipeline
5
+
6
+ pipe = pipeline("text-generation", model="microsoft/phi-1_5", trust_remote_code=True)
7
 
8
  # Funci贸n para generar texto
9
  def generar_texto(prompt):