Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
-
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
pipe = pipeline("text-generation", model="
|
|
|
|
|
|
|
|
|
|
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)
|