g3casey commited on
Commit
8ff4ae4
·
1 Parent(s): 0da2675

change to get_wiki of summarize

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -31,7 +31,8 @@ def search_wiki(text):
31
 
32
 
33
  def get_wiki(search_term):
34
- return wikipedia.summary(search_term)
 
35
 
36
 
37
  def inference(file):
@@ -42,5 +43,5 @@ def inference(file):
42
 
43
 
44
 
45
- iface = gr.Interface(fn=summarize, inputs="text", outputs="text")
46
  iface.launch()
 
31
 
32
 
33
  def get_wiki(search_term):
34
+ text = summarize(wikipedia.summary(search_term))
35
+ return text
36
 
37
 
38
  def inference(file):
 
43
 
44
 
45
 
46
+ iface = gr.Interface(fn=get_wiki, inputs="text", outputs="text")
47
  iface.launch()