removed 3 dots menu #6
19
main.py
19
main.py
@ -1,11 +1,24 @@
|
|||||||
import streamlit as st
|
import streamlit as st
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
# Initialize session state for prompt history
|
st.set_page_config(
|
||||||
if "history" not in st.session_state:
|
page_title="maargdarshak",
|
||||||
st.session_state.history = []
|
initial_sidebar_state="expanded",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
st.markdown("""
|
||||||
|
<style>
|
||||||
|
.reportview-container {
|
||||||
|
margin-top: -2em;
|
||||||
|
}
|
||||||
|
#MainMenu {visibility: hidden;}
|
||||||
|
.stDeployButton {display:none;}
|
||||||
|
footer {visibility: hidden;}
|
||||||
|
#stDecoration {display:none;}
|
||||||
|
</style>
|
||||||
|
""", unsafe_allow_html=True)
|
||||||
|
|
||||||
# Function to send POST request to a local server
|
# Function to send POST request to a local server
|
||||||
def send_post_request(prompt):
|
def send_post_request(prompt):
|
||||||
url = "http://localhost:19194/" # Update this to your actual server URL
|
url = "http://localhost:19194/" # Update this to your actual server URL
|
||||||
|
Loading…
Reference in New Issue
Block a user