Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,6 +37,8 @@ def opendomain(text,wikipedia_language="en"):
|
|
37 |
|
38 |
plt.imshow(wordcloud, interpolation='bilinear')
|
39 |
plt.axis("off")
|
|
|
|
|
40 |
|
41 |
|
42 |
final_out = re.sub(r'\=.+\=', '', text)
|
@@ -56,8 +58,6 @@ def opendomain(text,wikipedia_language="en"):
|
|
56 |
final = f"{final}.\n\n{joint_value}"
|
57 |
|
58 |
return final
|
59 |
-
except:
|
60 |
-
return "Please write correct wikipedia article name OR question"
|
61 |
|
62 |
|
63 |
iface = gr.Interface(fn=opendomain, inputs=[gr.inputs.Textbox(lines=5)], outputs="text")
|
|
|
37 |
|
38 |
plt.imshow(wordcloud, interpolation='bilinear')
|
39 |
plt.axis("off")
|
40 |
+
except:
|
41 |
+
return "Please write correct wikipedia article name OR question"
|
42 |
|
43 |
|
44 |
final_out = re.sub(r'\=.+\=', '', text)
|
|
|
58 |
final = f"{final}.\n\n{joint_value}"
|
59 |
|
60 |
return final
|
|
|
|
|
61 |
|
62 |
|
63 |
iface = gr.Interface(fn=opendomain, inputs=[gr.inputs.Textbox(lines=5)], outputs="text")
|