Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def inference(inputtext, model):
|
|
26 |
return outlabel
|
27 |
|
28 |
# Aktualisierte Gradio-Syntax
|
29 |
-
gr.Interface(
|
30 |
fn=inference,
|
31 |
inputs=[
|
32 |
gr.Textbox(label="Context", lines=10, placeholder="Enter text with [MASK] token"),
|
@@ -37,4 +37,6 @@ gr.Interface(
|
|
37 |
article=article,
|
38 |
title=title,
|
39 |
description=description
|
40 |
-
)
|
|
|
|
|
|
26 |
return outlabel
|
27 |
|
28 |
# Aktualisierte Gradio-Syntax
|
29 |
+
iface = gr.Interface(
|
30 |
fn=inference,
|
31 |
inputs=[
|
32 |
gr.Textbox(label="Context", lines=10, placeholder="Enter text with [MASK] token"),
|
|
|
37 |
article=article,
|
38 |
title=title,
|
39 |
description=description
|
40 |
+
)
|
41 |
+
|
42 |
+
iface.launch(share=True)
|