blazingbunny
commited on
Commit
•
81a493f
1
Parent(s):
32b5c2e
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
# app.py
|
|
|
2 |
import gradio as gr
|
3 |
import spacy
|
4 |
import os
|
@@ -22,12 +23,11 @@ def identify_nouns_verbs(text):
|
|
22 |
# Create the Gradio interface
|
23 |
iface = gr.Interface(
|
24 |
fn=identify_nouns_verbs,
|
25 |
-
inputs=gr.
|
26 |
-
outputs=gr.
|
27 |
title="Noun and Verb Identifier",
|
28 |
description="Enter a document or text to identify the nouns and verbs."
|
29 |
)
|
30 |
|
31 |
if __name__ == "__main__":
|
32 |
iface.launch()
|
33 |
-
|
|
|
1 |
# app.py
|
2 |
+
|
3 |
import gradio as gr
|
4 |
import spacy
|
5 |
import os
|
|
|
23 |
# Create the Gradio interface
|
24 |
iface = gr.Interface(
|
25 |
fn=identify_nouns_verbs,
|
26 |
+
inputs=gr.Textbox(lines=10, placeholder="Enter your text here..."),
|
27 |
+
outputs=gr.JSON(),
|
28 |
title="Noun and Verb Identifier",
|
29 |
description="Enter a document or text to identify the nouns and verbs."
|
30 |
)
|
31 |
|
32 |
if __name__ == "__main__":
|
33 |
iface.launch()
|
|