Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,9 @@ with st.form("game_details_form"):
|
|
| 53 |
genre = st.selectbox('Genre', ['Action', 'RPG', 'Puzzle', 'Adventure', 'Simulation', 'Strategy', 'Horror', 'Fighting', 'Sports', 'Racing', 'Casual', 'MOBA', 'Sandbox'])
|
| 54 |
target_platform = st.selectbox('Platform', ['PC', 'PlayStation', 'Xbox', 'Mobile', 'Switch', 'Nintendo 3DS', 'VR', 'Web'])
|
| 55 |
game_plays = st.number_input('Total Sales (units)', min_value=0, value=50000)
|
| 56 |
-
|
|
|
|
|
|
|
| 57 |
currency_fluctuations = st.number_input('Currency Fluctuations', min_value=0.5, max_value=1.5, value=1.0, format="%.2f")
|
| 58 |
|
| 59 |
# Submit button
|
|
@@ -65,7 +67,7 @@ if submitted:
|
|
| 65 |
input_data = {
|
| 66 |
'genre': genre,
|
| 67 |
'targetPlatform': target_platform,
|
| 68 |
-
'gamePlays':
|
| 69 |
'competitorPricing': competitor_pricing,
|
| 70 |
'currencyFluctuations': currency_fluctuations
|
| 71 |
}
|
|
|
|
| 53 |
genre = st.selectbox('Genre', ['Action', 'RPG', 'Puzzle', 'Adventure', 'Simulation', 'Strategy', 'Horror', 'Fighting', 'Sports', 'Racing', 'Casual', 'MOBA', 'Sandbox'])
|
| 54 |
target_platform = st.selectbox('Platform', ['PC', 'PlayStation', 'Xbox', 'Mobile', 'Switch', 'Nintendo 3DS', 'VR', 'Web'])
|
| 55 |
game_plays = st.number_input('Total Sales (units)', min_value=0, value=50000)
|
| 56 |
+
initial_price = st.number_input('Initial Price Offering ($)', min_value=0.0, value=29.99, format="%.2f")
|
| 57 |
+
revenue = total_sales * initial_price
|
| 58 |
+
competitor_pricing = st.number_input('Average Market Price for Similar Games ($)', min_value=0.0, value=30.0, format="%.2f")
|
| 59 |
currency_fluctuations = st.number_input('Currency Fluctuations', min_value=0.5, max_value=1.5, value=1.0, format="%.2f")
|
| 60 |
|
| 61 |
# Submit button
|
|
|
|
| 67 |
input_data = {
|
| 68 |
'genre': genre,
|
| 69 |
'targetPlatform': target_platform,
|
| 70 |
+
'gamePlays': revenue,
|
| 71 |
'competitorPricing': competitor_pricing,
|
| 72 |
'currencyFluctuations': currency_fluctuations
|
| 73 |
}
|