taaha3244 commited on
Commit
a0bea55
·
verified ·
1 Parent(s): e1445e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -95,7 +95,7 @@ with gr.Blocks() as app:
95
  response = gr.Textbox(label="Response", placeholder="The response will appear here...", lines=10, interactive=False)
96
 
97
  # Define the action to take on button click - Ensure util_bot function is awaited if it's async
98
- submit_button.click(util_bot, inputs=[question, openai_api_key], outputs=response)
99
 
100
  # Customizing the app's theme and adding CSS for fonts and colors
101
  app.css = """
 
95
  response = gr.Textbox(label="Response", placeholder="The response will appear here...", lines=10, interactive=False)
96
 
97
  # Define the action to take on button click - Ensure util_bot function is awaited if it's async
98
+ submit_button.click(util_bot, inputs=[question], outputs=response)
99
 
100
  # Customizing the app's theme and adding CSS for fonts and colors
101
  app.css = """