addaweathers commited on
Commit
7f043be
Β·
verified Β·
1 Parent(s): 309276d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -143,7 +143,7 @@ custom_css = """
143
  """
144
 
145
  # Layout Gradio UI
146
- with gr.Blocks() as demo:
147
  gr.ChatInterface(
148
  fn=chat_with_portfolio,
149
  title="πŸˆβ€β¬› Chat with Adda-Bot",
@@ -153,11 +153,10 @@ with gr.Blocks() as demo:
153
  "Tell me about her education.",
154
  "What projects has Adda worked on?"
155
  ],
 
 
156
  )
157
 
158
  # Apply the 'Pretty' settings here
159
  if __name__ == "__main__":
160
- demo.launch(
161
- css=custom_css,
162
- theme=gr.themes.Soft(), # Use Soft for rounded 'cute' corners
163
- )
 
143
  """
144
 
145
  # Layout Gradio UI
146
+ with gr.Blocks(theme=gr.themes.Soft(), css=custom_css) as demo:
147
  gr.ChatInterface(
148
  fn=chat_with_portfolio,
149
  title="πŸˆβ€β¬› Chat with Adda-Bot",
 
153
  "Tell me about her education.",
154
  "What projects has Adda worked on?"
155
  ],
156
+ # If you want to fix the 'Tuples' warning from the log, add this:
157
+ type="messages"
158
  )
159
 
160
  # Apply the 'Pretty' settings here
161
  if __name__ == "__main__":
162
+ demo.launch()