yetessam commited on
Commit
03cdef6
·
verified ·
1 Parent(s): e59746c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -4,30 +4,30 @@ import sys # Add this import to fix the error
4
  import datetime
5
  import requests
6
  from checks.failed_check import create_failed_gradio_ui
 
7
 
8
  import os
9
  import pytz # Had to give it permission in Code agent
10
 
11
  from tools.tools import tools
12
 
13
- from check_endpoint import is_huggingface_endpoint
14
  from agents.prompts import load_prompts
15
 
 
 
16
  from Gradio_UI import GradioUI
17
 
18
  # Get the URI for the endpoint
19
  endpoint_uri = load_huggingface_model
20
 
21
  # Test the endpoint
22
-
23
  if not is_public_endpoint(endpoint_uri):
24
  create_failed_gradio_ui()
25
 
26
  else:
27
  pass
28
 
29
-
30
-
31
  '''
32
  model = HfApiModel(
33
  max_tokens=2096,
 
4
  import datetime
5
  import requests
6
  from checks.failed_check import create_failed_gradio_ui
7
+ from checks.check_endpoint import is_huggingface_endpoint, is_public_endpoint
8
 
9
  import os
10
  import pytz # Had to give it permission in Code agent
11
 
12
  from tools.tools import tools
13
 
14
+ from agents.model import load_huggingface_mode
15
  from agents.prompts import load_prompts
16
 
17
+
18
+
19
  from Gradio_UI import GradioUI
20
 
21
  # Get the URI for the endpoint
22
  endpoint_uri = load_huggingface_model
23
 
24
  # Test the endpoint
 
25
  if not is_public_endpoint(endpoint_uri):
26
  create_failed_gradio_ui()
27
 
28
  else:
29
  pass
30
 
 
 
31
  '''
32
  model = HfApiModel(
33
  max_tokens=2096,