Spaces:
Runtime error
Runtime error
Weijia Shi
commited on
Commit
·
d339acc
1
Parent(s):
8ce2218
disclaimer
Browse files
app.py
CHANGED
|
@@ -51,17 +51,27 @@ def check_in_pretraining_data(text):
|
|
| 51 |
return "Likely not in text-davinci-003's pretraining data", confidence
|
| 52 |
|
| 53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
interface = gr.Interface(
|
| 56 |
fn=check_in_pretraining_data,
|
| 57 |
inputs=gr.Textbox(lines=20, placeholder="Enter a book snippet here (ensure it is longer than 512 words)..."),
|
| 58 |
outputs=[gr.Textbox(label="Output"), gr.Textbox(label="Confidence")],
|
| 59 |
-
title="Pretraining Data
|
| 60 |
-
description="This tool helps in detecting whether the book snippet is in text-davinci-003's pretraining data. Enter a snippet from any book, but make sure it is longer than 512 words.",
|
| 61 |
examples=[[harry], [pineapple]],
|
|
|
|
| 62 |
theme="huggingface",
|
| 63 |
layout="vertical",
|
| 64 |
-
allow_flagging="never"
|
| 65 |
)
|
| 66 |
|
| 67 |
interface.launch()
|
|
|
|
| 51 |
return "Likely not in text-davinci-003's pretraining data", confidence
|
| 52 |
|
| 53 |
|
| 54 |
+
# Disclaimer text
|
| 55 |
+
extended_description = """
|
| 56 |
+
#### This tool helps in detecting whether the book snippet is in text-davinci-003's pretraining data. Enter a snippet from any book, but make sure it is longer than 512 words.
|
| 57 |
+
|
| 58 |
+
---
|
| 59 |
+
|
| 60 |
+
#### Disclaimer
|
| 61 |
+
The results provided by this tool are estimates and should not be considered fully accurate. This tool does not store or retain any submitted content.
|
| 62 |
+
"""
|
| 63 |
|
| 64 |
interface = gr.Interface(
|
| 65 |
fn=check_in_pretraining_data,
|
| 66 |
inputs=gr.Textbox(lines=20, placeholder="Enter a book snippet here (ensure it is longer than 512 words)..."),
|
| 67 |
outputs=[gr.Textbox(label="Output"), gr.Textbox(label="Confidence")],
|
| 68 |
+
title="Detecting Whether the Book Snippet is in OpenAI text-davinci-003 Pretraining Data",
|
| 69 |
+
# description="This tool helps in detecting whether the book snippet is in text-davinci-003's pretraining data. Enter a snippet from any book, but make sure it is longer than 512 words.",
|
| 70 |
examples=[[harry], [pineapple]],
|
| 71 |
+
description=extended_description,
|
| 72 |
theme="huggingface",
|
| 73 |
layout="vertical",
|
| 74 |
+
allow_flagging="never",
|
| 75 |
)
|
| 76 |
|
| 77 |
interface.launch()
|