myalexa / app.py
almncarlo's picture
Update app.py
4571fa6 verified
raw
history blame
353 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline("text-generation", model="microsoft/Phi-3-mini-128k-instruct", trust_remote_code=True)
gr.Interface.from_pipeline(pipe,
title="TextGen",
description="Using pipeline with Phi3",
).launch(inbrowser=True)