Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,4 @@
|
|
1 |
-
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
pipe = pipeline(
|
5 |
-
model="meta-llama/Meta-Llama-3-8B")
|
6 |
-
gr.Interface.from_pipeline(pipe,
|
7 |
-
title="TextGen",
|
8 |
-
description="Using pipeline with Llama3",
|
9 |
-
).launch(inbrowser=True)
|
|
|
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")
|
|
|
|
|
|
|
|
|
|