inkleaves commited on
Commit
171e852
·
verified ·
1 Parent(s): 2b21347

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -26,10 +26,6 @@ app = gr.Interface(
26
  # Add a custom header in larger, bolded text using HTML
27
  header = gr.HTML("<h1 style='font-size:36px; font-weight:bold;'>Spam Detection App</h1>")
28
 
29
- # Combine header and interface in a layout using gr.Blocks()
30
- with gr.Blocks() as demo:
31
- header
32
- app
33
-
34
- # Launch the app
35
- demo.launch(share=True)
 
26
  # Add a custom header in larger, bolded text using HTML
27
  header = gr.HTML("<h1 style='font-size:36px; font-weight:bold;'>Spam Detection App</h1>")
28
 
29
+ # Launch the app with the header displayed above the interface
30
+ header.launch(share=True) # Launching header
31
+ app.launch(share=True) # Launching app