Asaad Almutareb commited on
Commit
710401a
β€’
1 Parent(s): e66a350

moved avatar and favicon to assets folder,

Browse files
app.py CHANGED
@@ -108,7 +108,8 @@ if __name__ == "__main__":
108
  chatbot = gr.Chatbot([],
109
  elem_id="AI Assistant",
110
  bubble_full_width=False,
111
- avatar_images=(None, (os.path.join(os.path.dirname(__file__), "innovation_pathfinder_ai/avatar.png"))),)
 
112
  chatbot.like(vote, None, None)
113
  clear = gr.Button("Clear")
114
  question.submit(add_text, [chatbot, question], [chatbot, question], queue=False).then(
@@ -119,7 +120,7 @@ if __name__ == "__main__":
119
  gr.Markdown("Nothing yet...")
120
 
121
  demo.queue()
122
- demo.launch(debug=True, favicon_path=os.path.join(os.path.dirname(__file__),"innovation_pathfinder_ai/favicon.ico"), share=True)
123
 
124
  x = 0 # for debugging purposes
125
  app = gr.mount_gradio_app(app, demo, path="/")
 
108
  chatbot = gr.Chatbot([],
109
  elem_id="AI Assistant",
110
  bubble_full_width=False,
111
+ avatar_images=(None, "./innovation_pathfinder_ai/assets/avatar.png"),
112
+ height=480,)
113
  chatbot.like(vote, None, None)
114
  clear = gr.Button("Clear")
115
  question.submit(add_text, [chatbot, question], [chatbot, question], queue=False).then(
 
120
  gr.Markdown("Nothing yet...")
121
 
122
  demo.queue()
123
+ demo.launch(debug=True, favicon_path="innovation_pathfinder_ai/assets/favicon.ico", share=True)
124
 
125
  x = 0 # for debugging purposes
126
  app = gr.mount_gradio_app(app, demo, path="/")
innovation_pathfinder_ai/{avatar.png β†’ assets/avatar.png} RENAMED
File without changes
innovation_pathfinder_ai/{favicon.ico β†’ assets/favicon.ico} RENAMED
File without changes