ryanramos commited on
Commit
57f866b
1 Parent(s): f6d816a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -26,6 +26,16 @@ examples = [[data['image'], data['question']] for data in vqa_data]
26
 
27
  title = 'VQA with ALBEF'
28
  description = 'VQA with [ALBEF](https://arxiv.org/abs/2107.07651), adapted from the [torchmultimodal example notebook](https://github.com/facebookresearch/multimodal/blob/main/examples/albef/vqa_with_albef.ipynb).'
 
 
 
 
 
 
 
 
 
 
29
 
30
  def infer(image, question):
31
  images = [image]
@@ -57,7 +67,8 @@ demo = gr.Interface(
57
  outputs=gr.Text(label='answer'),
58
  examples=examples,
59
  title=title,
60
- description=description
 
61
  )
62
 
63
  demo.launch()
 
26
 
27
  title = 'VQA with ALBEF'
28
  description = 'VQA with [ALBEF](https://arxiv.org/abs/2107.07651), adapted from the [torchmultimodal example notebook](https://github.com/facebookresearch/multimodal/blob/main/examples/albef/vqa_with_albef.ipynb).'
29
+ article = '''```bibtex
30
+ @article{li2021align,
31
+ title={Align before fuse: Vision and language representation learning with momentum distillation},
32
+ author={Li, Junnan and Selvaraju, Ramprasaath and Gotmare, Akhilesh and Joty, Shafiq and Xiong, Caiming and Hoi, Steven Chu Hong},
33
+ journal={Advances in neural information processing systems},
34
+ volume={34},
35
+ pages={9694--9705},
36
+ year={2021}
37
+ }
38
+ ```'''
39
 
40
  def infer(image, question):
41
  images = [image]
 
67
  outputs=gr.Text(label='answer'),
68
  examples=examples,
69
  title=title,
70
+ description=description,
71
+ article=article
72
  )
73
 
74
  demo.launch()