reichenbach commited on
Commit
9a1fe42
·
1 Parent(s): 1c83963

Adding Example Information

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -117,10 +117,13 @@ image_2 = gr.inputs.Image(type="filepath")
117
  text_1 = gr.inputs.Textbox(lines=5)
118
  text_2 = gr.inputs.Textbox(lines=5)
119
 
 
 
120
  label = gr.outputs.Label()
121
 
122
  iface = gr.Interface(classify_info,
123
  inputs=[image_1, text_1, image_2, text_2], outputs=label,
 
124
  title="Multimodal Entailment Keras",
125
  description = "Model for classifying whether image and text from one scenario complements the image and text from another scenario. They can be contradictory, implied or no entailment",
126
  article = "Author: <a href=\"https://huggingface.co/reichenbach\">Rishav Chandra Varma</a>")
 
117
  text_1 = gr.inputs.Textbox(lines=5)
118
  text_2 = gr.inputs.Textbox(lines=5)
119
 
120
+ examples = ['examples/image_1.png', 'examples/image_2.jpg', '#IndiaFightsCorona:\n\nNearly 4.5 million beneficiaries vaccinated against #COVID19 in 19 days.\n\nIndia is the fastest country to cross landmark of vaccinating 4 million beneficiaries in merely 18 days.\n\n#StaySafe #IndiaWillWin #Unite2FightCorona https://t.co/beGDQfd06S', '#IndiaFightsCorona:\n\nIndia has become the fastest nation to reach 4 million #COVID19 vaccinations ; it took only 18 days to administer the first 4 million #vaccines\n\n:@MoHFW_INDIA Secretary\n\n#StaySafe #IndiaWillWin #Unite2FightCorona https://t.co/9GENQlqtn3']
121
+
122
  label = gr.outputs.Label()
123
 
124
  iface = gr.Interface(classify_info,
125
  inputs=[image_1, text_1, image_2, text_2], outputs=label,
126
+ examples = examples,
127
  title="Multimodal Entailment Keras",
128
  description = "Model for classifying whether image and text from one scenario complements the image and text from another scenario. They can be contradictory, implied or no entailment",
129
  article = "Author: <a href=\"https://huggingface.co/reichenbach\">Rishav Chandra Varma</a>")