panda992 commited on
Commit
b7a1ffd
·
verified ·
1 Parent(s): 3bb609e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -26,7 +26,8 @@ def get_stock_price(company: str) -> str:
26
  search_results = search_tool(query)
27
 
28
  # Extract stock price using regex (pattern for ₹ price)
29
- match = re.search(r"₹\s?([\d,]+\.?\d*)", search_results)
 
30
 
31
  if match:
32
  price = match.group(0)
 
26
  search_results = search_tool(query)
27
 
28
  # Extract stock price using regex (pattern for ₹ price)
29
+ match = re.search(r"([\d,]+\.?\d*)USD", search_results)
30
+
31
 
32
  if match:
33
  price = match.group(0)