avilum commited on
Commit
3bdaf70
·
verified ·
1 Parent(s): eed0da4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -11
app.py CHANGED
@@ -159,12 +159,6 @@
159
  # iface.launch()
160
 
161
 
162
-
163
-
164
-
165
-
166
-
167
-
168
  import gradio as gr
169
  from gradio.themes import Soft
170
  from typing import Tuple
@@ -237,10 +231,11 @@ with gr.Blocks(theme=Soft(primary_hue="blue", secondary_hue="purple"), css=glass
237
  # Input section
238
  with gr.Row():
239
  with gr.Column():
240
- with gr.Box(css_class="box"):
241
- prompt_input = gr.Textbox(lines=5, placeholder="Type your prompt…", label="Your Prompt")
242
- threshold_input = gr.Slider(0.0, 1.0, value=SIMILARITY_ANOMALY_THRESHOLD, step=0.01, label="Similarity Threshold")
243
- submit = gr.Button("Analyze", variant="primary")
 
244
 
245
  # Results accordion (native details tag)
246
  with gr.Row():
@@ -271,4 +266,3 @@ with gr.Blocks(theme=Soft(primary_hue="blue", secondary_hue="purple"), css=glass
271
 
272
  if __name__ == "__main__":
273
  iface.launch(share=False, server_name="0.0.0.0", server_port=7860)
274
-
 
159
  # iface.launch()
160
 
161
 
 
 
 
 
 
 
162
  import gradio as gr
163
  from gradio.themes import Soft
164
  from typing import Tuple
 
231
  # Input section
232
  with gr.Row():
233
  with gr.Column():
234
+ gr.HTML("<div class='box'>")
235
+ prompt_input = gr.Textbox(lines=5, placeholder="Type your prompt…", label="Your Prompt")
236
+ threshold_input = gr.Slider(0.0, 1.0, value=SIMILARITY_ANOMALY_THRESHOLD, step=0.01, label="Similarity Threshold")
237
+ submit = gr.Button("Analyze", variant="primary")
238
+ gr.HTML("</div>")
239
 
240
  # Results accordion (native details tag)
241
  with gr.Row():
 
266
 
267
  if __name__ == "__main__":
268
  iface.launch(share=False, server_name="0.0.0.0", server_port=7860)