import streamlit as st import requests import os tok=os.getenv("TOK") def REGISTER(): with st.container(border=True): st.text("Account Activation") name=st.text_input("name of the organization ( lab,pharma) ?") operation=st.text_area("primary operation of the organization ? ") username=st.text_input("setup a username") password=st.text_input("setup a password") if st.button("register"): response=requests.post("https://thexforce-combat-backend.hf.space/registerorg",json={ "name":name, "operation":operation, "username":username "password":password },headers={ "Content-Type":"application/json", "Authorization":f"Bearer {tok}" }) status=response.json() if status==True: st.session_state.registered=True st.rerun() elif status ==False: st.error("ERROR while registering......")