Update app.py
Browse files
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):
|