Abhlash commited on
Commit
e94e9ff
·
verified ·
1 Parent(s): dc0667d

updated app

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 .bots.chat import bot # Use relative import
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 # Use absolute import
7
 
8
  def chat_interface(user_message, history):
9
  history.append((user_message, None)) # Append the user message to history