Abhlash commited on
Commit
8a0b943
·
verified ·
1 Parent(s): cc7a125

updated app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,5 +1,9 @@
 
 
 
 
1
  import gradio as gr
2
- from chat import bot # Import the bot function from chat.py
3
 
4
  def chat_interface(user_message, history):
5
  history.append((user_message, None)) # Append the user message to history
 
1
+ import sys
2
+ import os
3
+ sys.path.append(os.path.dirname(os.path.abspath(__file__)))
4
+
5
  import gradio as gr
6
+ from bots.chat import bot # Import the bot function from chat.py
7
 
8
  def chat_interface(user_message, history):
9
  history.append((user_message, None)) # Append the user message to history