Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
import os
|
2 |
-
os.system("pip install gradio==2.7.5.2")
|
3 |
import gradio as gr
|
4 |
|
5 |
title = "XLNet"
|
@@ -28,7 +26,7 @@ def inference(inputtext, model):
|
|
28 |
gr.Interface(
|
29 |
inference,
|
30 |
[gr.inputs.Textbox(label="Context",lines=10),gr.inputs.Dropdown(choices=["xlnet-base-cased","xlnet-large-cased"], type="value", default="xlnet-base-cased", label="model")],
|
31 |
-
[gr.outputs.
|
32 |
examples=examples,
|
33 |
article=article,
|
34 |
title=title,
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
title = "XLNet"
|
|
|
26 |
gr.Interface(
|
27 |
inference,
|
28 |
[gr.inputs.Textbox(label="Context",lines=10),gr.inputs.Dropdown(choices=["xlnet-base-cased","xlnet-large-cased"], type="value", default="xlnet-base-cased", label="model")],
|
29 |
+
[gr.outputs.Textbox(label="Output")],
|
30 |
examples=examples,
|
31 |
article=article,
|
32 |
title=title,
|