hassan526 commited on
Commit
bba2e95
·
verified ·
1 Parent(s): 4e1b760

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -1,6 +1,3 @@
1
- import sys
2
- sys.path.append('../')
3
-
4
  import os
5
  import gradio as gr
6
  import requests
@@ -8,6 +5,8 @@ import json
8
  import cv2
9
  import numpy as np
10
  from PIL import Image
 
 
11
  import fr.engine.header as fr_header
12
  import fl.engine.header as fl_header
13
 
@@ -84,8 +83,7 @@ css = """
84
  """
85
 
86
  file_path = os.path.abspath(__file__)
87
- gradio_path = os.path.dirname(file_path)
88
- root_path = os.path.dirname(gradio_path)
89
 
90
  g_fr_activation_result = -1
91
  g_fl_activation_result = -1
 
 
 
 
1
  import os
2
  import gradio as gr
3
  import requests
 
5
  import cv2
6
  import numpy as np
7
  from PIL import Image
8
+ from fr.engine.header import *
9
+ from fl.engine.header import *
10
  import fr.engine.header as fr_header
11
  import fl.engine.header as fl_header
12
 
 
83
  """
84
 
85
  file_path = os.path.abspath(__file__)
86
+ root_path = os.path.dirname(file_path)
 
87
 
88
  g_fr_activation_result = -1
89
  g_fl_activation_result = -1