Update app.py
Browse files
app.py
CHANGED
|
@@ -178,7 +178,7 @@ def create_gradio_interface():
|
|
| 178 |
]
|
| 179 |
|
| 180 |
# Create interface
|
| 181 |
-
with gr.Blocks(
|
| 182 |
|
| 183 |
# Header
|
| 184 |
gr.Markdown("""
|
|
@@ -262,6 +262,7 @@ def create_gradio_interface():
|
|
| 262 |
return interface
|
| 263 |
|
| 264 |
|
|
|
|
| 265 |
# MAIN EXECUTION
|
| 266 |
if __name__ == "__main__":
|
| 267 |
print("\n" + "=" * 70)
|
|
@@ -273,12 +274,13 @@ if __name__ == "__main__":
|
|
| 273 |
|
| 274 |
# Launch with configuration
|
| 275 |
interface.launch(
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
|
|
|
| 282 |
|
| 283 |
print("\n" + "=" * 70)
|
| 284 |
print("✓ Interface is running!")
|
|
|
|
| 178 |
]
|
| 179 |
|
| 180 |
# Create interface
|
| 181 |
+
with gr.Blocks(title="Sentiment Analysis") as interface:
|
| 182 |
|
| 183 |
# Header
|
| 184 |
gr.Markdown("""
|
|
|
|
| 262 |
return interface
|
| 263 |
|
| 264 |
|
| 265 |
+
|
| 266 |
# MAIN EXECUTION
|
| 267 |
if __name__ == "__main__":
|
| 268 |
print("\n" + "=" * 70)
|
|
|
|
| 274 |
|
| 275 |
# Launch with configuration
|
| 276 |
interface.launch(
|
| 277 |
+
server_name="0.0.0.0",
|
| 278 |
+
server_port=7860,
|
| 279 |
+
theme=gr.themes.Soft(),
|
| 280 |
+
ssr_mode=False,
|
| 281 |
+
share=False,
|
| 282 |
+
show_error=True
|
| 283 |
+
)
|
| 284 |
|
| 285 |
print("\n" + "=" * 70)
|
| 286 |
print("✓ Interface is running!")
|