Spaces:
Build error
Build error
One more try for Inference, with imports
Browse files12345678910import streamlit as stx = st.slider('Select a value')st.write(x, 'squared is', x * x)# Get the API key from the environment variableapi_key = st.secrets("InferenceKey")# Initialize the Inference API with your model and API keyapi = InferenceApi(repo_id="gpt-3", token=api_key)123456789101112import osfrom huggingface_hub import InferenceApiimport streamlit as stx = st.slider('Select a value')st.write(x, 'squared is', x * x)# Get the API key from the environment variableapi_key = os.getenv("HF_API_KEY")# Initialize the Inference API with your model and API keyapi = InferenceApi(repo_id="gpt-3", token=api_key)
app.py+3-1