Spaces:
Runtime error
Runtime error
FEAT: add demo.jpg
Browse files- .gitattributes +1 -0
- 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 |
-
['
|
|
|
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)
|