Abhlash commited on
Commit
ea4e5e4
·
verified ·
1 Parent(s): f3740c1

updated app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,13 +1,12 @@
1
  import sys
2
  import os
3
 
4
- # Add the parent directory to the Python path
5
  current_dir = os.path.dirname(os.path.abspath(__file__))
6
- parent_dir = os.path.dirname(current_dir)
7
- sys.path.append(parent_dir)
8
 
9
  import gradio as gr
10
- from app.bots.chat import bot # Use absolute import
11
 
12
  def chat_interface(user_message, history):
13
  history.append((user_message, None)) # Append the user message to history
 
1
  import sys
2
  import os
3
 
4
+ # Add the current directory to the Python path
5
  current_dir = os.path.dirname(os.path.abspath(__file__))
6
+ sys.path.append(current_dir)
 
7
 
8
  import gradio as gr
9
+ from bot.chat import bot # Use the correct import for the bot directory
10
 
11
  def chat_interface(user_message, history):
12
  history.append((user_message, None)) # Append the user message to history