Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,12 +58,14 @@ def forex_tool(query:str,amt:float, base_currency:str, conv_currency:str)-> floa
|
|
| 58 |
and outputs how much your money is worth by multiplying your amount with the
|
| 59 |
other country's rate.
|
| 60 |
Args:
|
| 61 |
-
query: the foreign
|
|
|
|
| 62 |
amt: the amount of money to be converted
|
| 63 |
base_currency:the base currency that has to be converted (e.g usd)
|
| 64 |
conv_currency:the currency to be converted into(e.g ghs)
|
| 65 |
"""
|
| 66 |
forex_tool= DDGS()
|
|
|
|
| 67 |
search_result = DDGS().text(query)
|
| 68 |
amount_worth = amt * float(conv_currency)
|
| 69 |
return amount_worth
|
|
|
|
| 58 |
and outputs how much your money is worth by multiplying your amount with the
|
| 59 |
other country's rate.
|
| 60 |
Args:
|
| 61 |
+
query: the foreign exchange rates between the two currencies(e.g 1 base_currency to conv_currency?
|
| 62 |
+
where base_currency and conv_currency are placeholders for the actual currencies)
|
| 63 |
amt: the amount of money to be converted
|
| 64 |
base_currency:the base currency that has to be converted (e.g usd)
|
| 65 |
conv_currency:the currency to be converted into(e.g ghs)
|
| 66 |
"""
|
| 67 |
forex_tool= DDGS()
|
| 68 |
+
full_query = f"{}"
|
| 69 |
search_result = DDGS().text(query)
|
| 70 |
amount_worth = amt * float(conv_currency)
|
| 71 |
return amount_worth
|