freddyaboulton HF staff commited on
Commit
890d269
1 Parent(s): 9fc6ad5

Use code component for input

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,5 +18,5 @@ examples = [
18
  ]
19
  css = "#component-4{display: block;}"
20
  description = "Run SQL queries on the HuggingFaceFW/fineweb dataset"
21
- demo = gr.Interface(fn=greet, inputs="text", outputs="dataframe", examples=examples, cache_examples=False, description=description, css=css)
22
  demo.launch()
 
18
  ]
19
  css = "#component-4{display: block;}"
20
  description = "Run SQL queries on the HuggingFaceFW/fineweb dataset"
21
+ demo = gr.Interface(fn=greet, inputs=gr.Code(language="sql", lines=10), outputs="dataframe", examples=examples, cache_examples=False, description=description, css=css)
22
  demo.launch()