ysenarath commited on
Commit
467edde
·
verified ·
1 Parent(s): b10602c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -1,5 +1,7 @@
1
- !pip install transformers
2
- from transformers import AutoProcessor, AutoModelForImageTextToText
3
 
4
- processor = AutoProcessor.from_pretrained("gauravbahl/unsloth_finetune")
5
- model = AutoModelForImageTextToText.from_pretrained("gauravbahl/unsloth_finetune")
 
 
 
 
1
+ import gradio as gr
 
2
 
3
+ from transformers import pipeline
4
+
5
+ pipe = pipeline(model="gauravbahl/unsloth_finetune")
6
+
7
+ gr.Interface.from_pipeline(pipe).launch()