zafirabdullah12 commited on
Commit
1ed3be5
·
verified ·
1 Parent(s): 204577a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -178,7 +178,7 @@ def create_gradio_interface():
178
  ]
179
 
180
  # Create interface
181
- with gr.Blocks(theme=gr.themes.Soft(), title="Sentiment Analysis") as interface:
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
- server_name="0.0.0.0", # Allow external access
277
- server_port=7860, # Default Gradio port
278
- share=False, # Set to True for public URL
279
- inbrowser=True, # Auto-open in browser
280
- show_error=True # Show errors in interface
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!")