Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ exampleDatasets = ["No Dataset Finetuning",
|
|
| 44 |
"vedantgaur/GPTOutputs-MWP - Both AI and Human Data",
|
| 45 |
"dmitva/human_ai_generated_text - Both AI and Human Data"]
|
| 46 |
|
| 47 |
-
examples = [[random.choice(exampleModels), random.choice(exampleDatasets),
|
| 48 |
|
| 49 |
|
| 50 |
def detect_ai_generated_text(model: str, dataset: str, text: str) -> list:
|
|
@@ -83,7 +83,7 @@ interface = gr.Interface(
|
|
| 83 |
gr.Textbox(lines=5, label="Input Text")
|
| 84 |
],
|
| 85 |
outputs=[
|
| 86 |
-
gr.
|
| 87 |
gr.HTML(label="AI-generated"),
|
| 88 |
gr.HTML(label="Human-written")
|
| 89 |
],
|
|
|
|
| 44 |
"vedantgaur/GPTOutputs-MWP - Both AI and Human Data",
|
| 45 |
"dmitva/human_ai_generated_text - Both AI and Human Data"]
|
| 46 |
|
| 47 |
+
examples = [[random.choice(exampleModels), random.choice(exampleDatasets), choice(exampleText)] for example in exampleText]
|
| 48 |
|
| 49 |
|
| 50 |
def detect_ai_generated_text(model: str, dataset: str, text: str) -> list:
|
|
|
|
| 83 |
gr.Textbox(lines=5, label="Input Text")
|
| 84 |
],
|
| 85 |
outputs=[
|
| 86 |
+
gr.HTML(label="Output"),
|
| 87 |
gr.HTML(label="AI-generated"),
|
| 88 |
gr.HTML(label="Human-written")
|
| 89 |
],
|