Spaces:
Runtime error
Runtime error
Updated gradio inputs
Browse files
app.py
CHANGED
@@ -29,9 +29,9 @@ def detect_ai_generated_text(model: str, dataset: str, text: str) -> str:
|
|
29 |
iface = gr.Interface(
|
30 |
fn=detect_ai_generated_text,
|
31 |
inputs=[
|
32 |
-
gr.
|
33 |
-
gr.
|
34 |
-
gr.
|
35 |
],
|
36 |
outputs=gr.outputs.Textbox(label="Output"),
|
37 |
)
|
|
|
29 |
iface = gr.Interface(
|
30 |
fn=detect_ai_generated_text,
|
31 |
inputs=[
|
32 |
+
gr.Dropdown(choices=models, label="Model"),
|
33 |
+
gr.Dropdown(choices=datasets, label="Dataset"),
|
34 |
+
gr.Textbox(lines=5, label="Input Text")
|
35 |
],
|
36 |
outputs=gr.outputs.Textbox(label="Output"),
|
37 |
)
|