yagnik12 commited on
Commit
ccaa0ab
·
verified ·
1 Parent(s): 49e474f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -13,6 +13,16 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
13
  """
14
  )
15
 
 
 
 
 
 
 
 
 
 
 
16
  final_output = gr.JSON(label="📊 Final Results")
17
 
18
  with gr.Accordion("🔬 Detailed Model Results", open=False):
@@ -28,5 +38,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
28
  outputs=[final_output, model_output]
29
  )
30
 
31
-
32
  demo.launch()
 
13
  """
14
  )
15
 
16
+ with gr.Row():
17
+ with gr.Column(scale=2):
18
+ user_input = gr.Textbox(
19
+ label="✍️ Enter Text",
20
+ placeholder="Paste text here...",
21
+ lines=10
22
+ )
23
+ analyze_btn = gr.Button("🚀 Run Detection", variant="primary")
24
+
25
+ with gr.Column(scale=1):
26
  final_output = gr.JSON(label="📊 Final Results")
27
 
28
  with gr.Accordion("🔬 Detailed Model Results", open=False):
 
38
  outputs=[final_output, model_output]
39
  )
40
 
 
41
  demo.launch()