muneebashraf commited on
Commit
524f1cf
·
1 Parent(s): dddb6a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ def fill_mask(sentence):
9
  results = unmasker(sentence)
10
  return [result['sequence'] for result in results]
11
 
12
- inputs = gr.inputs.Textbox(label="Enter a sentence with a masked word")
13
  outputs = gr.outputs.Textbox(label="Predicted sequences")
14
 
15
  gr.Interface(fn=fill_mask, inputs=inputs, outputs=outputs).launch()
 
9
  results = unmasker(sentence)
10
  return [result['sequence'] for result in results]
11
 
12
+ inputs = gr.inputs.Image(label="Upload an image")
13
  outputs = gr.outputs.Textbox(label="Predicted sequences")
14
 
15
  gr.Interface(fn=fill_mask, inputs=inputs, outputs=outputs).launch()