Abid Ali Awan commited on
Commit
8159b22
·
1 Parent(s): 3b87708

Update README with new SDK version 5.34.2, enhance UIHandler to clarify execution time for crawling, and improve regulatory sources in settings.py by adding full names and reordering entries for better clarity.

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. agents/ui_handler.py +4 -2
  3. config/settings.py +5 -5
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🛡️
4
  colorFrom: blue
5
  colorTo: indigo
6
  sdk: gradio
7
- sdk_version: 5.34.0
8
  app_file: app.py
9
  pinned: true
10
  license: apache-2.0
 
4
  colorFrom: blue
5
  colorTo: indigo
6
  sdk: gradio
7
+ sdk_version: 5.34.2
8
  app_file: app.py
9
  pinned: true
10
  license: apache-2.0
agents/ui_handler.py CHANGED
@@ -81,6 +81,8 @@ class UIHandler:
81
  - Keywords: {params["keywords"]}
82
 
83
  🔄 **Executing {tool_name}...**
 
 
84
  """
85
  history.append(ChatMessage(role="assistant", content=tool_status))
86
  yield history, "", gr.update(interactive=False), user_id_state
@@ -299,8 +301,8 @@ Found {len(memory_results)} similar past queries in memory. Top 3 shown below:
299
  # Footer
300
  gr.HTML("""
301
  <div style="text-align: center; padding: 20px; color: #666; font-size: 0.9rem;">
302
- <p>RegRadar monitors regulatory updates from SEC, FDA, FTC, EU Commission, and more.</p>
303
- <p>All analysis is AI-generated. Always verify with official sources.</p>
304
  </div>
305
  """)
306
 
 
81
  - Keywords: {params["keywords"]}
82
 
83
  🔄 **Executing {tool_name}...**
84
+
85
+ ⏳ _This process may take 30-60 seconds depending on the number of webpages being crawled._
86
  """
87
  history.append(ChatMessage(role="assistant", content=tool_status))
88
  yield history, "", gr.update(interactive=False), user_id_state
 
301
  # Footer
302
  gr.HTML("""
303
  <div style="text-align: center; padding: 20px; color: #666; font-size: 0.9rem;">
304
+ <p>RegRadar monitors regulatory updates from the SEC, EU Commission, and other leading global authorities.</p>
305
+ <p>All analyses are AI-generated. Please verify findings with official regulatory sources.</p>
306
  </div>
307
  """)
308
 
config/settings.py CHANGED
@@ -12,19 +12,19 @@ OPENAI_BASE_URL = "https://api.keywordsai.co/api/"
12
  REGULATORY_SOURCES = {
13
  "US": {
14
  "SEC": "https://www.sec.gov/news/pressreleases",
15
- "FDA": "https://www.fda.gov/news-events/fda-newsroom/press-announcements",
16
- "FTC": "https://www.ftc.gov/news-events/news/press-releases",
17
  "Federal Register": "https://www.federalregister.gov/documents/current",
 
18
  "CFTC": "https://www.cftc.gov/PressRoom/PressReleases",
19
  "FDIC": "https://www.fdic.gov/news/press-releases/",
20
  "FINRA": "https://www.finra.org/media-center/newsreleases",
21
- "Federal Reserve Board": "https://www.federalreserve.gov/newsevents/pressreleases.htm",
 
22
  },
23
  "EU": {
24
  "ESMA": "https://www.esma.europa.eu/press-news/esma-news",
 
25
  "EBA": "https://www.eba.europa.eu/publications-and-media",
26
  "EIOPA": "https://www.eiopa.europa.eu/media/news_en",
27
- "European Parliament News": "https://www.europarl.europa.eu/news/en/press-room",
28
  "ECB": "https://www.ecb.europa.eu/press/pr/html/index.en.html",
29
  },
30
  "Asia": {
@@ -32,9 +32,9 @@ REGULATORY_SOURCES = {
32
  "Reserve Bank of India (RBI)": "https://www.rbi.org.in/Scripts/BS_PressReleaseDisplay.aspx",
33
  },
34
  "Global": {
35
- "BIS": "https://www.bis.org/press/index.htm",
36
  "IMF": "https://www.imf.org/en/News",
37
  "World Bank": "https://www.worldbank.org/en/news/all",
 
38
  "OECD": "https://www.oecd.org/newsroom/",
39
  },
40
  }
 
12
  REGULATORY_SOURCES = {
13
  "US": {
14
  "SEC": "https://www.sec.gov/news/pressreleases",
 
 
15
  "Federal Register": "https://www.federalregister.gov/documents/current",
16
+ "Federal Reserve Board": "https://www.federalreserve.gov/newsevents/pressreleases.htm",
17
  "CFTC": "https://www.cftc.gov/PressRoom/PressReleases",
18
  "FDIC": "https://www.fdic.gov/news/press-releases/",
19
  "FINRA": "https://www.finra.org/media-center/newsreleases",
20
+ "FDA": "https://www.fda.gov/news-events/fda-newsroom/press-announcements",
21
+ "FTC": "https://www.ftc.gov/news-events/news/press-releases",
22
  },
23
  "EU": {
24
  "ESMA": "https://www.esma.europa.eu/press-news/esma-news",
25
+ "European Parliament News": "https://www.europarl.europa.eu/news/en/press-room",
26
  "EBA": "https://www.eba.europa.eu/publications-and-media",
27
  "EIOPA": "https://www.eiopa.europa.eu/media/news_en",
 
28
  "ECB": "https://www.ecb.europa.eu/press/pr/html/index.en.html",
29
  },
30
  "Asia": {
 
32
  "Reserve Bank of India (RBI)": "https://www.rbi.org.in/Scripts/BS_PressReleaseDisplay.aspx",
33
  },
34
  "Global": {
 
35
  "IMF": "https://www.imf.org/en/News",
36
  "World Bank": "https://www.worldbank.org/en/news/all",
37
+ "BIS": "https://www.bis.org/press/index.htm",
38
  "OECD": "https://www.oecd.org/newsroom/",
39
  },
40
  }