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