llamameta's picture
Rename llama to llama.py
4fe88e3 verified
raw
history blame contribute delete
285 Bytes
import gradio as gr
import spaces
import transformers_gradio
demo = gr.load(name="meta-llama/Llama-3.3-70B-Instruct", src=transformers_gradio.registry)
demo.fn = spaces.GPU()(demo.fn)
for fn in demo.fns.values():
fn.api_name = False
if __name__ == "__main__":
demo.launch()