asoria HF staff commited on
Commit
1dc217b
1 Parent(s): 00f2043
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -20,12 +20,12 @@ def get_result(token, dataset, config, split, prompt) -> str:
20
  with gr.Blocks() as demo:
21
  gr.Markdown(" ## PandasAI demo using datasets library")
22
  gr.Markdown(" pandasai library https://github.com/gventuri/pandas-ai")
23
- gr.Markdown(" datasets library https://huggingface.co/docs/datasets/index")
24
 
25
  hf_token = gr.Textbox(label="hugging face token", placeholder="hf_xxx", type="password")
26
- dataset = gr.Textbox(label="dataset", placeholder="mstz/iris")
27
- config = gr.Textbox(label="config", placeholder="iris")
28
- split = gr.Textbox(label="split", placeholder="train")
29
  prompt = gr.Textbox(label="prompt (str)", placeholder="How many records do I have?. Give me the median of sepal_width. Show me the first 5 rows.")
30
  output = gr.Textbox(label="Output Box")
31
  get_result_button = gr.Button("Submit")
 
20
  with gr.Blocks() as demo:
21
  gr.Markdown(" ## PandasAI demo using datasets library")
22
  gr.Markdown(" pandasai library https://github.com/gventuri/pandas-ai")
23
+ gr.Markdown(" datasets library https://huggingface.co/docs/datasets")
24
 
25
  hf_token = gr.Textbox(label="hugging face token", placeholder="hf_xxx", type="password")
26
+ dataset = gr.Textbox(label="dataset", placeholder="mstz/iris", value="mstz/iris")
27
+ config = gr.Textbox(label="config", placeholder="iris", value="iris")
28
+ split = gr.Textbox(label="split", placeholder="train", value="train")
29
  prompt = gr.Textbox(label="prompt (str)", placeholder="How many records do I have?. Give me the median of sepal_width. Show me the first 5 rows.")
30
  output = gr.Textbox(label="Output Box")
31
  get_result_button = gr.Button("Submit")