Spaces:
Sleeping
Sleeping
Commit ·
c0b77e8
1
Parent(s): 96606a5
minor tweak
Browse files
app.py
CHANGED
|
@@ -49,15 +49,7 @@ def chinese_sentiment_analysis(text: str) -> str:
|
|
| 49 |
|
| 50 |
return json.dumps(result)
|
| 51 |
|
| 52 |
-
#
|
| 53 |
-
# demo = gr.Interface(
|
| 54 |
-
# fn = sentiment_analysis,
|
| 55 |
-
# inputs = gr.Textbox(placeholder = 'Enter text to analyse...'),
|
| 56 |
-
# outputs = gr.Textbox(), # Changed from gr.JSON() to gr.Textbox()
|
| 57 |
-
# title = 'Text Sentiment Analysis',
|
| 58 |
-
# description = 'Analyse the sentiment of text using TextBlob'
|
| 59 |
-
# )
|
| 60 |
-
|
| 61 |
demo = gr.TabbedInterface(
|
| 62 |
[
|
| 63 |
gr.Interface(
|
|
|
|
| 49 |
|
| 50 |
return json.dumps(result)
|
| 51 |
|
| 52 |
+
# gradio interface
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
demo = gr.TabbedInterface(
|
| 54 |
[
|
| 55 |
gr.Interface(
|