Oranblock commited on
Commit
aa85114
·
verified ·
1 Parent(s): 76e1a8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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=[gr.Textbox(label="Model ID (e.g., gpt-3.5-turbo)", default="gpt-3.5-turbo"),
46
- gr.File(label="Upload your JSON file")],
 
 
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."