ThomasSimonini HF staff commited on
Commit
1d4f62b
β€’
1 Parent(s): c80bfc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import gradio as gr
2
 
3
- demo = gr.load("meta-llama/Llama-2-7b-chat-hf", src="models")
4
 
 
5
  demo.launch()
 
1
  import gradio as gr
2
 
3
+ pipe = pipeline("conversational", model="meta-llama/Llama-2-7b-chat-hf")
4
 
5
+ demo = gr.Interface.from_pipeline(pipe)
6
  demo.launch()