gxy commited on
Commit
2e9fbd8
1 Parent(s): 062ce8e

FEAT: add demo.jpg

Browse files
Files changed (2) hide show
  1. .gitattributes +1 -0
  2. app.py +1 -3
.gitattributes CHANGED
@@ -32,3 +32,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ demo.jpg filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -1,6 +1,4 @@
1
  import gradio as gr
2
- from PIL import Image
3
- import requests
4
  import torch
5
  import os
6
  from transformers import BlipForConditionalGeneration, BlipProcessor, GenerationConfig
@@ -52,4 +50,4 @@ article = "<p style='text-align: center'><a href='https://github.com/IDEA-CCNL/F
52
 
53
 
54
  gr.Interface(inference, inputs, outputs, title=title, description=description, article=article, examples=[
55
- ['starrynight.jpeg', "Image Captioning", "None", "Nucleus sampling"]]).launch(enable_queue=True)
 
1
  import gradio as gr
 
 
2
  import torch
3
  import os
4
  from transformers import BlipForConditionalGeneration, BlipProcessor, GenerationConfig
 
50
 
51
 
52
  gr.Interface(inference, inputs, outputs, title=title, description=description, article=article, examples=[
53
+ ['demo.jpg', "Image Captioning", "None", "Nucleus sampling"]]).launch(enable_queue=True)