stevhliu HF staff commited on
Commit
7b1f2d9
·
verified ·
1 Parent(s): d4cc405

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,6 +1,6 @@
1
- from transformers import pipeline, BitsAndBytesConfig
2
  import gradio as gr
3
  import torch
4
 
5
- pipeline = pipeline("text-generation", model="google/gemma-2-2b", torch_dtype=torch.bfloat16, device_map="auto", model_kwargs={"quantization_config": BitsAndBytesConfig(load_in_8bit=True)})
6
  gr.Interface.from_pipeline(pipeline).launch()
 
1
+ from transformers import pipeline
2
  import gradio as gr
3
  import torch
4
 
5
+ pipeline = pipeline("text-generation", model="openai-community/gpt2")
6
  gr.Interface.from_pipeline(pipeline).launch()