Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,14 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
import
|
4 |
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
11 |
|
12 |
def uppercase(text):
|
13 |
return text.upper()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
from inductor import BartInductor
|
4 |
|
5 |
+
inductor = BartInductor()
|
6 |
+
|
7 |
+
rule = '<mask> is the capital of <mask>.'
|
8 |
+
generated_texts = inductor.generate(rule)
|
9 |
+
|
10 |
+
for text in generated_texts:
|
11 |
+
print(text)
|
12 |
|
13 |
def uppercase(text):
|
14 |
return text.upper()
|