carblacac commited on
Commit
5ebc75d
·
1 Parent(s): 8bbe152

add examples to app

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -29,5 +29,7 @@ def inference(text: str) -> str:
29
  idx = predictions.index(max_vale)
30
  return model.config.id2label[idx]
31
 
 
 
32
  iface = gr.Interface(fn=inference, inputs="text", outputs="text")
33
  iface.launch()
 
29
  idx = predictions.index(max_vale)
30
  return model.config.id2label[idx]
31
 
32
+ examples = ['Tomorrow I will celebrate my birthday!', 'I was shocked when I saw the movie']
33
+
34
  iface = gr.Interface(fn=inference, inputs="text", outputs="text")
35
  iface.launch()