bikas commited on
Commit
6c4f37d
·
1 Parent(s): 20c801a

Currency Converter remove comment

Browse files
Files changed (1) hide show
  1. README.md +12 -42
README.md CHANGED
@@ -1,42 +1,12 @@
1
- # Currency Converter Web App
2
-
3
- ## Author:
4
- - **Name**: [Your Name]
5
- - **Student ID**: [Your Student ID]
6
-
7
- ## Project Description:
8
-
9
- This project is a Currency Converter web app built using Python and Streamlit. It allows users to convert between different currencies using both the latest and historical exchange rates retrieved from the Frankfurter API.
10
-
11
- ### Key Features:
12
- 1. Convert an amount between two currencies using the latest conversion rate.
13
- 2. Convert an amount using a historical exchange rate for a selected date.
14
- 3. Display the conversion rate, converted amount, and inverse conversion rate.
15
-
16
- ### Files in the Project:
17
- - **app.py**: Main Streamlit Python script used for managing users’ inputs and displaying results.
18
- - **api.py**: Python script that contains the code for making API calls to fetch available currencies.
19
- - **frankfurter.py**: Python script containing functions for calling relevant Frankfurter endpoints and extracting information (latest and historical rates).
20
- - **currency.py**: Python script used for formatting the results displayed in the Streamlit app.
21
- - **README.md**: Project documentation with details, functions list, and instructions for running the web app.
22
-
23
- ### Python Functions:
24
- - `get_currencies()`: Fetches the list of available currencies from the Frankfurter API.
25
- - `get_latest_rate(from_currency, to_currency)`: Fetches the latest conversion rate from the Frankfurter API.
26
- - `get_historical_rate(from_currency, to_currency, date)`: Fetches the historical conversion rate for a specific date from the Frankfurter API.
27
- - `format_conversion_result(date, from_currency, to_currency, rate, from_amount, to_amount, inverse_rate)`: Formats the conversion results for display in the Streamlit app.
28
-
29
- ### How to Run the Web App:
30
- Install the required dependencies:
31
-
32
- ```bash
33
- pip install streamlit requests
34
- or
35
- pip install -r requirements.txt
36
- ```
37
-
38
- Run the Streamlit app:
39
-
40
- ```bash
41
- streamlit run app.py
42
- ```
 
1
+ ---
2
+ title: Currency Converter
3
+ emoji: 🔥
4
+ colorFrom: indigo
5
+ colorTo: purple
6
+ sdk: streamlit
7
+ sdk_version: 1.39.0
8
+ app_file: app.py
9
+ pinned: false
10
+ license: mit
11
+ ---
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference