david-oplatka commited on
Commit
b47e796
·
verified ·
1 Parent(s): 01e50b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -13
app.py CHANGED
@@ -47,7 +47,7 @@ cfg.description = f'''
47
  <td style="width: 33%;"> This demo uses Retrieval Augmented Generation to ask questions about {cfg.source_data_desc} </td>
48
  </tr>
49
  </table>
50
- <center> <h2>{cfg.description}</h2></center>
51
  '''
52
 
53
  css = """
@@ -61,18 +61,9 @@ td {
61
  text-align: center;
62
  }
63
  img {
64
- width: 50%;
65
  }
66
- """
67
-
68
- # cfg.title = f'''<center> <img src="https://github.com/david-oplatka/chatbot-streamlit/blob/main/Vectara-logo.png?raw=true" width="200px" height="40px">
69
- # <h1>{cfg.title}</h1> </center>
70
- # '''
71
-
72
- # cfg.description = f'''<center> <h2>{cfg.description}</h2>
73
- # <br>
74
- # This demo uses Retrieval Augmented Generation to ask questions about {cfg.source_data_desc}</center>
75
- # '''
76
 
77
  if cfg.examples:
78
  app_examples = [example.strip() for example in cfg.examples.split(",")]
@@ -80,7 +71,7 @@ else:
80
  app_examples = None
81
 
82
  demo = gr.ChatInterface(respond, description = cfg.description, css = css,
83
- chatbot = gr.Chatbot(value = [[None, "How may I help you?"]], scale=2), examples = app_examples)
84
 
85
 
86
  if __name__ == "__main__":
 
47
  <td style="width: 33%;"> This demo uses Retrieval Augmented Generation to ask questions about {cfg.source_data_desc} </td>
48
  </tr>
49
  </table>
50
+ <center> <h3>{cfg.description}</h3></center>
51
  '''
52
 
53
  css = """
 
61
  text-align: center;
62
  }
63
  img {
64
+ width: 60%;
65
  }
66
+ """
 
 
 
 
 
 
 
 
 
67
 
68
  if cfg.examples:
69
  app_examples = [example.strip() for example in cfg.examples.split(",")]
 
71
  app_examples = None
72
 
73
  demo = gr.ChatInterface(respond, description = cfg.description, css = css,
74
+ chatbot = gr.Chatbot(value = [[None, "How may I help you?"]]), examples = app_examples)
75
 
76
 
77
  if __name__ == "__main__":