davidfearne
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def format_elapsed_time(time):
|
|
39 |
return "{:.2f}".format(time)
|
40 |
|
41 |
# Layout with three columns
|
42 |
-
col1, col2, col3 = st.columns([1,
|
43 |
|
44 |
# Left Column: Variables and Settings
|
45 |
with col1:
|
@@ -55,7 +55,7 @@ with col1:
|
|
55 |
|
56 |
# Middle Column: Chat Interface
|
57 |
with col2:
|
58 |
-
st.markdown("<div style='text-align:
|
59 |
|
60 |
# User ID Input
|
61 |
user_id = st.text_input("User ID:", key="user_id")
|
@@ -89,7 +89,7 @@ with col2:
|
|
89 |
persona2SystemMessage=persona2SystemMessage,
|
90 |
llm1=llm1,
|
91 |
tokens1=tokens1,
|
92 |
-
temperature1=0
|
93 |
userMessage2="",
|
94 |
llm2="GPT-4",
|
95 |
tokens2=500,
|
@@ -118,3 +118,4 @@ with col3:
|
|
118 |
st.markdown(f"**Response Tokens:** {response_tokens}")
|
119 |
else:
|
120 |
st.markdown("No stats available yet.")
|
|
|
|
39 |
return "{:.2f}".format(time)
|
40 |
|
41 |
# Layout with three columns
|
42 |
+
col1, col2, col3 = st.columns([1, 6, 1], gap="small") # Adjusted width ratios for better centering
|
43 |
|
44 |
# Left Column: Variables and Settings
|
45 |
with col1:
|
|
|
55 |
|
56 |
# Middle Column: Chat Interface
|
57 |
with col2:
|
58 |
+
st.markdown("<div style='text-align: left;'><h1>Experiment With Queries</h1></div>", unsafe_allow_html=True)
|
59 |
|
60 |
# User ID Input
|
61 |
user_id = st.text_input("User ID:", key="user_id")
|
|
|
89 |
persona2SystemMessage=persona2SystemMessage,
|
90 |
llm1=llm1,
|
91 |
tokens1=tokens1,
|
92 |
+
temperature1=0.0,
|
93 |
userMessage2="",
|
94 |
llm2="GPT-4",
|
95 |
tokens2=500,
|
|
|
118 |
st.markdown(f"**Response Tokens:** {response_tokens}")
|
119 |
else:
|
120 |
st.markdown("No stats available yet.")
|
121 |
+
|