Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,21 +34,18 @@ def detect(input_text,th=-3.08583984375):
|
|
| 34 |
|
| 35 |
return label2decisions[decision]
|
| 36 |
|
| 37 |
-
description_e = """
|
|
|
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
|
| 45 |
-
|
| 46 |
-
|
| 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 |
-
|
| 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()
|