almncarlo commited on
Commit
4571fa6
1 Parent(s): f9bfdbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -1,4 +1,8 @@
1
- # Use a pipeline as a high-level helper
2
  from transformers import pipeline
3
 
4
- pipe = pipeline("text-generation", model="meta-llama/Meta-Llama-3-8B")
 
 
 
 
 
1
+ import gradio as gr
2
  from transformers import pipeline
3
 
4
+ pipe = pipeline("text-generation", model="microsoft/Phi-3-mini-128k-instruct", trust_remote_code=True)
5
+ gr.Interface.from_pipeline(pipe,
6
+ title="TextGen",
7
+ description="Using pipeline with Phi3",
8
+ ).launch(inbrowser=True)