File size: 353 Bytes
4571fa6
78bc825
def81e4
4571fa6
 
 
 
 
1
2
3
4
5
6
7
8
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)