andreslu commited on
Commit
3060053
1 Parent(s): f1f5a12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
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