Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ st.write("""
|
|
| 52 |
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 |
-
|
| 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")
|
|
@@ -82,6 +82,8 @@ if submitted:
|
|
| 82 |
st.write("#### Input Details:")
|
| 83 |
st.write(f"- **Genre**: {genre}")
|
| 84 |
st.write(f"- **Platform**: {target_platform}")
|
| 85 |
-
st.write(f"- **
|
|
|
|
|
|
|
| 86 |
st.write(f"- **Competitor Pricing**: ${competitor_pricing:.2f}")
|
| 87 |
st.write(f"- **Currency Fluctuations**: {currency_fluctuations}")
|
|
|
|
| 52 |
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 |
+
total_sales = 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")
|
|
|
|
| 82 |
st.write("#### Input Details:")
|
| 83 |
st.write(f"- **Genre**: {genre}")
|
| 84 |
st.write(f"- **Platform**: {target_platform}")
|
| 85 |
+
st.write(f"- **Total Sales**: {total_sales}")
|
| 86 |
+
st.write(f"- **Initial Price**: ${initial_price:.2f}")
|
| 87 |
+
st.write(f"- **Current Revenue**: ${revenue:.2f}")
|
| 88 |
st.write(f"- **Competitor Pricing**: ${competitor_pricing:.2f}")
|
| 89 |
st.write(f"- **Currency Fluctuations**: {currency_fluctuations}")
|