Update app.py
Browse files
app.py
CHANGED
@@ -14,5 +14,5 @@ def prompt(text):
|
|
14 |
return [ config.id2label[ids] for ids in results]
|
15 |
#return tokenizer.decode(output[0][0].argmax(dim=-1))
|
16 |
|
17 |
-
demo=gr.Interface
|
18 |
-
|
|
|
14 |
return [ config.id2label[ids] for ids in results]
|
15 |
#return tokenizer.decode(output[0][0].argmax(dim=-1))
|
16 |
|
17 |
+
demo = gr.Interface(fn=prompt,inputs= "text", outputs="text")
|
18 |
+
demo.launch(debug=True)
|