shuv25 commited on
Commit
8e4db5f
·
verified ·
1 Parent(s): 07adc13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -3
app.py CHANGED
@@ -1,11 +1,24 @@
 
 
 
 
 
1
  import gradio as gr
2
  import os
3
  import base64
4
 
5
- with open("public/style.css") as f:
 
 
 
 
6
  css = f.read()
7
 
8
- logo_path = os.path.join(os.getcwd(), "public/main-logo.png")
 
 
 
 
9
 
10
  def embed_image_base64(path):
11
  with open(path, "rb") as f:
@@ -15,7 +28,7 @@ logo_b64 = embed_image_base64(logo_path)
15
 
16
  AGENT_URLS = {
17
  "delivery": "https://huggingface.co/spaces/shuv25/optimize_delivery_system",
18
- "agent2": "https://huggingface.co/spaces/Tamannathakur/SPARKNOVA",
19
  "agent3": "https://huggingface.co/spaces/akankshar639/CustomerSupportAgent"
20
  }
21
 
 
1
+
2
+
3
+
4
+
5
+
6
  import gradio as gr
7
  import os
8
  import base64
9
 
10
+
11
+ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
12
+ css_path = os.path.join(BASE_DIR, "style.css")
13
+
14
+ with open(css_path, "r") as f:
15
  css = f.read()
16
 
17
+
18
+
19
+
20
+
21
+ logo_path = os.path.join(BASE_DIR, "main-logo.png")
22
 
23
  def embed_image_base64(path):
24
  with open(path, "rb") as f:
 
28
 
29
  AGENT_URLS = {
30
  "delivery": "https://huggingface.co/spaces/shuv25/optimize_delivery_system",
31
+ "agent2": "https://huggingface.co/spaces/Tamannathakur/Data_Analyzer",
32
  "agent3": "https://huggingface.co/spaces/akankshar639/CustomerSupportAgent"
33
  }
34