david-oplatka commited on
Commit
1c2b3eb
·
verified ·
1 Parent(s): 5327c85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -39,14 +39,7 @@ def respond(message, history):
39
  yield response
40
 
41
 
42
- cfg.description = f'''<style>
43
- img {{
44
- width: 10%;
45
- }}
46
- table, td {{
47
- border: none;
48
- }}
49
- </style>
50
  <table>
51
  <tr>
52
  <td> <img src="https://github.com/david-oplatka/chatbot-streamlit/blob/main/Vectara-logo.png?raw=true"> </td>
@@ -57,7 +50,14 @@ cfg.description = f'''<style>
57
  <center> <h2>{cfg.description}</h2></center>
58
  '''
59
 
60
-
 
 
 
 
 
 
 
61
 
62
  # cfg.title = f'''<center> <img src="https://github.com/david-oplatka/chatbot-streamlit/blob/main/Vectara-logo.png?raw=true" width="200px" height="40px">
63
  # <h1>{cfg.title}</h1> </center>
@@ -74,7 +74,7 @@ else:
74
  app_examples = None
75
 
76
  demo = gr.ChatInterface(respond, description = cfg.description,
77
- chatbot = gr.Chatbot(value = [[None, "How may I help you?"]], scale=3), examples = app_examples)
78
 
79
 
80
  if __name__ == "__main__":
 
39
  yield response
40
 
41
 
42
+ cfg.description = f'''
 
 
 
 
 
 
 
43
  <table>
44
  <tr>
45
  <td> <img src="https://github.com/david-oplatka/chatbot-streamlit/blob/main/Vectara-logo.png?raw=true"> </td>
 
50
  <center> <h2>{cfg.description}</h2></center>
51
  '''
52
 
53
+ css = """
54
+ img {
55
+ width: 10%;
56
+ }
57
+ table, td {
58
+ border: none;
59
+ }
60
+ """
61
 
62
  # cfg.title = f'''<center> <img src="https://github.com/david-oplatka/chatbot-streamlit/blob/main/Vectara-logo.png?raw=true" width="200px" height="40px">
63
  # <h1>{cfg.title}</h1> </center>
 
74
  app_examples = None
75
 
76
  demo = gr.ChatInterface(respond, description = cfg.description,
77
+ chatbot = gr.Chatbot(value = [[None, "How may I help you?"]], scale=2), examples = app_examples)
78
 
79
 
80
  if __name__ == "__main__":