codelion commited on
Commit
05875fd
·
verified ·
1 Parent(s): 2f6ffe7

Add URL examples, fix tab layout jumping

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -134,6 +134,7 @@ footer { display: none !important; }
134
  background: transparent !important;
135
  border: none !important;
136
  padding: 0 !important;
 
137
  }
138
 
139
  /* Input card */
@@ -435,6 +436,16 @@ with gr.Blocks(css=CSS, title="AI Text Detector", theme=gr.themes.Base()) as dem
435
 
436
  url_btn.click(fn=detect_url, inputs=url_input, outputs=[url_output, url_preview], api_name="detect_url")
437
 
 
 
 
 
 
 
 
 
 
 
438
  gr.HTML("""
439
  <div class="info-strip">
440
  <p>
 
134
  background: transparent !important;
135
  border: none !important;
136
  padding: 0 !important;
137
+ min-height: 520px !important;
138
  }
139
 
140
  /* Input card */
 
436
 
437
  url_btn.click(fn=detect_url, inputs=url_input, outputs=[url_output, url_preview], api_name="detect_url")
438
 
439
+ gr.HTML('<div class="examples-heading">Try an example</div>')
440
+ gr.Examples(
441
+ examples=[
442
+ ["https://en.wikipedia.org/wiki/Constitution_of_the_United_States"],
443
+ ["https://chatgpt.com/share/67ea1754-ea50-800a-8702-0cf6b38e7a42"],
444
+ ],
445
+ inputs=url_input,
446
+ label="",
447
+ )
448
+
449
  gr.HTML("""
450
  <div class="info-strip">
451
  <p>