srinuksv commited on
Commit
e0b0a27
1 Parent(s): 86b945b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -96,7 +96,7 @@ def predict(message, history):
96
  response = handle_query(message)
97
  response_with_logo = f'<div class="response-with-logo">{logo_html}<div class="response-text">{response}</div></div>'
98
  return response_with_logo
99
-
100
  # Custom CSS for styling
101
  css = '''
102
  .gradio-container {
@@ -213,4 +213,11 @@ with gr.Blocks(theme=gr.themes.Monochrome(), fill_height=True, css=css) as demo:
213
  gr.ChatInterface(predict, clear_btn=None, undo_btn=None, retry_btn=None)
214
 
215
  # Launch the interface
216
- demo.launch()
 
 
 
 
 
 
 
 
96
  response = handle_query(message)
97
  response_with_logo = f'<div class="response-with-logo">{logo_html}<div class="response-text">{response}</div></div>'
98
  return response_with_logo
99
+ """
100
  # Custom CSS for styling
101
  css = '''
102
  .gradio-container {
 
213
  gr.ChatInterface(predict, clear_btn=None, undo_btn=None, retry_btn=None)
214
 
215
  # Launch the interface
216
+ demo.launch()
217
+ """
218
+ gr.ChatInterface(predict,
219
+ title="FernAi_chatBot",
220
+ description="Ask any Redfernstech any questions",
221
+ clear_btn=None, undo_btn=None, retry_btn=None,
222
+ examples=['Tell me about Redfernstech?', 'Services in Redfernstech?']
223
+ ).launch() # Launching the web interface.