Update app.py
Browse files
app.py
CHANGED
|
@@ -42,8 +42,10 @@ def process_file(model_id, uploaded_file):
|
|
| 42 |
|
| 43 |
iface = gr.Interface(
|
| 44 |
fn=process_file,
|
| 45 |
-
inputs=[
|
| 46 |
-
|
|
|
|
|
|
|
| 47 |
outputs=[gr.JSON(label="Fixed JSON"), "text", gr.File(label="Download cleaned JSON file")],
|
| 48 |
title="AI-Powered JSON Cleaner with Model Selection",
|
| 49 |
description="Upload a JSON file to automatically fix, remove duplicates, and download the cleaned version using AI with GPU/CPU fallback. Select any model from the Hugging Face Hub."
|
|
|
|
| 42 |
|
| 43 |
iface = gr.Interface(
|
| 44 |
fn=process_file,
|
| 45 |
+
inputs=[
|
| 46 |
+
gr.Textbox(label="Model ID (e.g., gpt-3.5-turbo)", value="gpt-3.5-turbo"),
|
| 47 |
+
gr.File(label="Upload your JSON file")
|
| 48 |
+
],
|
| 49 |
outputs=[gr.JSON(label="Fixed JSON"), "text", gr.File(label="Download cleaned JSON file")],
|
| 50 |
title="AI-Powered JSON Cleaner with Model Selection",
|
| 51 |
description="Upload a JSON file to automatically fix, remove duplicates, and download the cleaned version using AI with GPU/CPU fallback. Select any model from the Hugging Face Hub."
|