File size: 408 Bytes
133899f
 
 
 
 
 
 
 
867a343
 
133899f
96da5e8
b4ff37c
133899f
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import streamlit as st
import pandas as pd
import requests

# Streamlit UI 
st.title("Test App")
st.write("This tool predicts the sales for a specific SuperKart store. Enter the required information below.")


@app2.route('/v1/test', methods =['POST', 'GET'])
if st.button("Predict", type='primary'):
        result = requests.get()
        st.success(result)
else:
        st.write(f"Error in API request")