Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1195,7 +1195,6 @@ class AdvancedReviewAnalyzer:
|
|
1195 |
|
1196 |
return insights
|
1197 |
|
1198 |
-
|
1199 |
# Global analyzer instance
|
1200 |
analyzer = None
|
1201 |
|
@@ -1965,7 +1964,7 @@ def create_gradio_interface():
|
|
1965 |
outputs=[sentiment_result, sentiment_chart1, sentiment_chart2]
|
1966 |
)
|
1967 |
|
1968 |
-
with gr.Tab("
|
1969 |
gr.Markdown("### Fine-grained Emotion Analysis - Identify joy, sadness, anger and other emotions")
|
1970 |
|
1971 |
with gr.Row():
|
@@ -2219,7 +2218,7 @@ def create_gradio_interface():
|
|
2219 |
outputs=[report_output]
|
2220 |
)
|
2221 |
|
2222 |
-
with gr.Tab("
|
2223 |
gr.Markdown("""
|
2224 |
## π SmartReview Pro User Guide
|
2225 |
|
@@ -2342,7 +2341,7 @@ if __name__ == "__main__":
|
|
2342 |
# Create the interface
|
2343 |
demo = create_gradio_interface()
|
2344 |
|
2345 |
-
# Launch configuration for Hugging Face Spaces
|
2346 |
demo.launch(
|
2347 |
share=False, # Set to False for HF Spaces
|
2348 |
server_name="0.0.0.0", # Required for HF Spaces
|
@@ -2352,8 +2351,5 @@ if __name__ == "__main__":
|
|
2352 |
quiet=False, # Show startup logs
|
2353 |
favicon_path=None, # Can add custom favicon
|
2354 |
ssl_verify=False, # For development
|
2355 |
-
# Additional HF Spaces specific settings
|
2356 |
-
enable_queue=True, # Enable request queuing
|
2357 |
max_threads=10, # Limit concurrent requests
|
2358 |
)
|
2359 |
-
|
|
|
1195 |
|
1196 |
return insights
|
1197 |
|
|
|
1198 |
# Global analyzer instance
|
1199 |
analyzer = None
|
1200 |
|
|
|
1964 |
outputs=[sentiment_result, sentiment_chart1, sentiment_chart2]
|
1965 |
)
|
1966 |
|
1967 |
+
with gr.Tab("οΏ½ Emotion Analysis"):
|
1968 |
gr.Markdown("### Fine-grained Emotion Analysis - Identify joy, sadness, anger and other emotions")
|
1969 |
|
1970 |
with gr.Row():
|
|
|
2218 |
outputs=[report_output]
|
2219 |
)
|
2220 |
|
2221 |
+
with gr.Tab("οΏ½π User Guide"):
|
2222 |
gr.Markdown("""
|
2223 |
## π SmartReview Pro User Guide
|
2224 |
|
|
|
2341 |
# Create the interface
|
2342 |
demo = create_gradio_interface()
|
2343 |
|
2344 |
+
# Launch configuration for Hugging Face Spaces - FIXED VERSION
|
2345 |
demo.launch(
|
2346 |
share=False, # Set to False for HF Spaces
|
2347 |
server_name="0.0.0.0", # Required for HF Spaces
|
|
|
2351 |
quiet=False, # Show startup logs
|
2352 |
favicon_path=None, # Can add custom favicon
|
2353 |
ssl_verify=False, # For development
|
|
|
|
|
2354 |
max_threads=10, # Limit concurrent requests
|
2355 |
)
|
|