Spaces:
Runtime error
Runtime error
add examples to app
Browse files
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()
|