Pijush2023 commited on
Commit
7899b01
·
verified ·
1 Parent(s): f993109

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1335,9 +1335,11 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
1335
 
1336
  # Example prompts component
1337
  gr.Markdown("<h2>Example Prompts</h2>")
1338
- gr.Examples(examples=example_prompts, fn=insert_example_prompt, inputs=None, outputs="chat_input")
1339
-
1340
  chat_input = gr.Textbox(show_copy_button=True, interactive=True, show_label=False, label="ASK Radar !!!", placeholder="Hey Radar...!!")
 
 
 
 
1341
  tts_choice = gr.Radio(label="Select TTS System", choices=["Alpha", "Beta"], value="Alpha")
1342
  retriever_button = gr.Button("Retriever")
1343
 
 
1335
 
1336
  # Example prompts component
1337
  gr.Markdown("<h2>Example Prompts</h2>")
 
 
1338
  chat_input = gr.Textbox(show_copy_button=True, interactive=True, show_label=False, label="ASK Radar !!!", placeholder="Hey Radar...!!")
1339
+
1340
+ # Correcting the inputs parameter
1341
+ gr.Examples(examples=example_prompts, fn=insert_example_prompt, inputs=chat_input, outputs=chat_input)
1342
+
1343
  tts_choice = gr.Radio(label="Select TTS System", choices=["Alpha", "Beta"], value="Alpha")
1344
  retriever_button = gr.Button("Retriever")
1345