Update app.py
Browse files
app.py
CHANGED
@@ -59,9 +59,12 @@ def calculatePerplexities(text):
|
|
59 |
perplexities.append({"sentence": sentence, "perplexity": perplexity, "label": label})
|
60 |
return perplexities
|
61 |
|
|
|
|
|
|
|
62 |
demo = gr.Interface(
|
63 |
-
fn=calculatePerplexities,
|
64 |
-
inputs=
|
65 |
article = "Visit <a href = \"https://ai-content-detector.online/\">AI Content Detector</a> for better user experience!",
|
66 |
outputs="text",
|
67 |
# interpretation="default",
|
|
|
59 |
perplexities.append({"sentence": sentence, "perplexity": perplexity, "label": label})
|
60 |
return perplexities
|
61 |
|
62 |
+
def input_api_info():
|
63 |
+
return {"input": gr.inputs.Textbox(placeholder="Copy and paste here...")}
|
64 |
+
|
65 |
demo = gr.Interface(
|
66 |
+
fn=calculatePerplexities,
|
67 |
+
inputs=input_api_info,
|
68 |
article = "Visit <a href = \"https://ai-content-detector.online/\">AI Content Detector</a> for better user experience!",
|
69 |
outputs="text",
|
70 |
# interpretation="default",
|