gradio-dolly2 / app.py
kevinbednarek's picture
Update app.py
289edb2
raw
history blame
299 Bytes
import torch
import gradio as gr
from transformers import pipeline
generate_text = pipeline(model="databricks/dolly-v2-3b", torch_dtype=torch.bfloat16, trust_remote_code=True, device_map="auto")
interface = gr.Interface(fn=generate_text, inputs='text', outputs='text')
interface.launch(share=True)