soleilholmes commited on
Commit
92255da
·
verified ·
1 Parent(s): cef062d

banner purple

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -98,8 +98,7 @@ custom_theme = gr.themes.Default(
98
  link_text_color_hover="darkgreen"
99
  )
100
 
101
- # Define the chatbot interface
102
- with gr.Blocks(theme=custom_theme) as chatbot_interface:
103
  gr.Image(
104
  value="banner.jpg",
105
  show_label=False,
@@ -107,11 +106,12 @@ with gr.Blocks(theme=custom_theme) as chatbot_interface:
107
  show_download_button=False
108
  )
109
 
 
110
  gr.ChatInterface(
111
- respond,
112
- examples=["Teach me about minorities in tech", "Help me find statistics about Women in tech", "What are some communities/groups I can join for tech inclusiveness!"],
113
- #description="This is a minority inclusivity bot"
114
- )
115
 
116
  # Launch the chatbot interface
117
- chatbot_interface.launch()
 
98
  link_text_color_hover="darkgreen"
99
  )
100
 
101
+ with gr.Blocks(theme=custom_theme) as chatbot:
 
102
  gr.Image(
103
  value="banner.jpg",
104
  show_label=False,
 
106
  show_download_button=False
107
  )
108
 
109
+ # Define the chatbot interface outside the respond function
110
  gr.ChatInterface(
111
+ respond,
112
+ examples=["Teach me about minorities in tech", "Help me find statistics about Women in tech", "What are some communities/groups I can join for tech inclusiveness!"],
113
+ #description="This is a minority inclusivity bot"
114
+ )
115
 
116
  # Launch the chatbot interface
117
+ chatbot.launch()