almncarlo commited on
Commit
99984d7
·
verified ·
1 Parent(s): 53d405e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -1,9 +1,4 @@
1
- import gradio as gr
2
  from transformers import pipeline
3
 
4
- pipe = pipeline(task="text-generation",
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")