yaful commited on
Commit
bc98429
β€’
1 Parent(s): bb145b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -14
app.py CHANGED
@@ -34,21 +34,18 @@ def detect(input_text,th=-3.08583984375):
34
 
35
  return label2decisions[decision]
36
 
37
- description_e = """This is a demo on Github project πŸƒ [Deepfake Text Detection in the Wild](https://github.com/yafuly/DeepfakeTextDetect).
 
38
 
39
- 🎯 Input the text to be detected, and click ''submit''' to get the detection result, either human-written or machine-generated.
40
-
41
- βŒ›οΈ It takes about 6~ seconds to generate segment results.
42
-
43
- 🏠 Check out our [Model Card πŸƒ](https://huggingface.co/nealcly/detection-longformer)
44
 
45
- """
46
- css = "h1 { text-align: center } .about { text-align: justify; padding-left: 10%; padding-right: 10%; }"
47
- with gr.Blocks(css=css, title='Deepfake Text Detection in the Wild') as demo:
48
- with gr.Row():
49
- gr.Markdown('Deepfake Text Detection in the Wild')
50
- gr.Markdown(description_e)
51
 
52
- gr.Markdown(description_e)
53
- iface = gr.Interface(fn=detect, inputs="text", outputs="text")
54
  iface.launch()
 
34
 
35
  return label2decisions[decision]
36
 
37
+ description_e = """
38
+ This is a demo on Github project πŸƒ [Deepfake Text Detection in the Wild](https://github.com/yafuly/DeepfakeTextDetect).
39
 
40
+ 🎯 Input the text to be detected, and click ''submit''' to get the detection result, either human-written or machine-generated.
41
+
42
+ βŒ›οΈ It takes about 6~ seconds to generate segment results.
43
+
44
+ 🏠 Check out our [Model Card πŸƒ](https://huggingface.co/nealcly/detection-longformer)
45
 
46
+ """
47
+
 
 
 
 
48
 
49
+
50
+ iface = gr.Interface(fn=detect, inputs="text", outputs="text", description=gr.Markdown(description_e))
51
  iface.launch()