Commit
·
97995e3
1
Parent(s):
76cab42
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ msg_panel = chat_interface.send(
|
|
21 |
respond=False,
|
22 |
)
|
23 |
apikey = pn.widgets.TextInput(name='OPENAI API KEY', placeholder="sk-********")
|
24 |
-
apply = pn.widgets.Button(name='
|
25 |
website_url_input = pn.widgets.TextInput(name='Website URL', placeholder="https://www.google.com/")
|
26 |
submit = pn.widgets.Button(name='Submit', button_type='primary')
|
27 |
|
@@ -78,7 +78,6 @@ def even_or_odd(contents, user, instance):
|
|
78 |
|
79 |
return response_string
|
80 |
# Set the callback function for the button click event
|
81 |
-
apply.on_click(on_submit)
|
82 |
submit.on_click(on_submit)
|
83 |
|
84 |
# Instantiate the template with widgets displayed in the sidebar
|
@@ -106,4 +105,4 @@ template.main.append(
|
|
106 |
)
|
107 |
|
108 |
# Display the app
|
109 |
-
template.servable()
|
|
|
21 |
respond=False,
|
22 |
)
|
23 |
apikey = pn.widgets.TextInput(name='OPENAI API KEY', placeholder="sk-********")
|
24 |
+
apply = pn.widgets.Button(name='Apply', button_type='default')
|
25 |
website_url_input = pn.widgets.TextInput(name='Website URL', placeholder="https://www.google.com/")
|
26 |
submit = pn.widgets.Button(name='Submit', button_type='primary')
|
27 |
|
|
|
78 |
|
79 |
return response_string
|
80 |
# Set the callback function for the button click event
|
|
|
81 |
submit.on_click(on_submit)
|
82 |
|
83 |
# Instantiate the template with widgets displayed in the sidebar
|
|
|
105 |
)
|
106 |
|
107 |
# Display the app
|
108 |
+
template.servable()
|