Spaces:
Runtime error
Runtime error
Commit
β’
62d0599
1
Parent(s):
9079103
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
|
|
|
5 |
|
6 |
demo = gr.Interface.from_pipeline(pipe)
|
7 |
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
hf_token = os.getenv("HF_TOKEN")
|
5 |
+
pipe = pipeline("conversational", model="meta-llama/Llama-2-7b-chat-hf", token=hf_token)
|
6 |
|
7 |
demo = gr.Interface.from_pipeline(pipe)
|
8 |
demo.launch()
|