AsherKnight commited on
Commit
b5f78a6
·
1 Parent(s): c2c5906
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
  from utils.routing import route_agent
3
  from agents.agent1_image_issue import handle_image_issue
@@ -5,13 +13,7 @@ from agents.agent2_tenancy_faq import handle_tenancy_query
5
  from PIL import Image
6
  import torch
7
  import hashlib
8
- import subprocess
9
- import sys
10
- import os
11
 
12
- # Install requirements if needed
13
- requirements_file = os.path.join(os.path.dirname(__file__), "requirements.txt")
14
- subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", requirements_file])
15
 
16
  # Helper to generate MD5 hash from image
17
  def get_image_hash(image):
 
1
+ import subprocess
2
+ import sys
3
+ import os
4
+
5
+ # Install requirements if needed
6
+ requirements_file = os.path.join(os.path.dirname(__file__), "requirements.txt")
7
+ subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", requirements_file])
8
+
9
  import gradio as gr
10
  from utils.routing import route_agent
11
  from agents.agent1_image_issue import handle_image_issue
 
13
  from PIL import Image
14
  import torch
15
  import hashlib
 
 
 
16
 
 
 
 
17
 
18
  # Helper to generate MD5 hash from image
19
  def get_image_hash(image):