Spaces:
Runtime error
Runtime error
change to get_wiki of summarize
Browse files
app.py
CHANGED
@@ -31,7 +31,8 @@ def search_wiki(text):
|
|
31 |
|
32 |
|
33 |
def get_wiki(search_term):
|
34 |
-
|
|
|
35 |
|
36 |
|
37 |
def inference(file):
|
@@ -42,5 +43,5 @@ def inference(file):
|
|
42 |
|
43 |
|
44 |
|
45 |
-
iface = gr.Interface(fn=
|
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()
|