acecalisto3 commited on
Commit
efc2a65
·
verified ·
1 Parent(s): 52b6878

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -114,8 +114,11 @@ def create_dataset(urls, file, text_input):
114
  return output_file
115
 
116
  # Gradio Interface
 
 
 
117
  iface = gr.Interface(
118
- fn=create_dataset,
119
  inputs=[
120
  gr.Textbox(lines=5, label="Enter comma-separated URLs"),
121
  gr.File(label="Upload file (including zip files)"),
 
114
  return output_file
115
 
116
  # Gradio Interface
117
+ def gradio_interface(urls, file, text_input):
118
+ return create_dataset(urls, file, text_input)
119
+
120
  iface = gr.Interface(
121
+ fn=gradio_interface,
122
  inputs=[
123
  gr.Textbox(lines=5, label="Enter comma-separated URLs"),
124
  gr.File(label="Upload file (including zip files)"),