Spaces:
Sleeping
Sleeping
Commit
·
8ff3194
1
Parent(s):
cfdd4ea
Test Return Value
Browse files
app.py
CHANGED
@@ -27,13 +27,13 @@ def analyze_text(text):
|
|
27 |
summary = summarizer(text, max_length=130, min_length=30, do_sample=False)
|
28 |
|
29 |
# return f"Sentiment: {sentiment}, Score: {sentiment_score}\nKeywords: {keywords}\nSummary: {summary}"
|
30 |
-
return {
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
}
|
36 |
-
|
37 |
|
38 |
# Create the Gradio interface
|
39 |
iface = gr.Interface(fn=analyze_text, inputs="text", outputs="text")
|
|
|
27 |
summary = summarizer(text, max_length=130, min_length=30, do_sample=False)
|
28 |
|
29 |
# return f"Sentiment: {sentiment}, Score: {sentiment_score}\nKeywords: {keywords}\nSummary: {summary}"
|
30 |
+
# return {
|
31 |
+
# "sentiment": sentiment,
|
32 |
+
# "sentiment_score": sentiment_score,
|
33 |
+
# "keywords": keywords,
|
34 |
+
# "summary": summary,
|
35 |
+
# }
|
36 |
+
return "test String Only"
|
37 |
|
38 |
# Create the Gradio interface
|
39 |
iface = gr.Interface(fn=analyze_text, inputs="text", outputs="text")
|