Spaces:
Runtime error
Runtime error
Removed decimals from group tag and moved where it is called in the side by side flow so they actually share the same ID
Browse files- pages/010_LLM_Architectures.py +1 -1
- src/common.py +1 -1
pages/010_LLM_Architectures.py
CHANGED
@@ -37,9 +37,9 @@ def show_side_by_side() -> None:
|
|
37 |
st.write(f'#### {a.name}')
|
38 |
|
39 |
# Now dispatch the messages per architecture
|
|
|
40 |
for i, a in enumerate(Architecture.architectures):
|
41 |
request = ArchitectureRequest(query=prompt)
|
42 |
-
group_tag = generate_group_tag()
|
43 |
with arch_cols[i]:
|
44 |
with st.spinner('Architecture processing request'):
|
45 |
start = time()
|
|
|
37 |
st.write(f'#### {a.name}')
|
38 |
|
39 |
# Now dispatch the messages per architecture
|
40 |
+
group_tag = generate_group_tag()
|
41 |
for i, a in enumerate(Architecture.architectures):
|
42 |
request = ArchitectureRequest(query=prompt)
|
|
|
43 |
with arch_cols[i]:
|
44 |
with st.spinner('Architecture processing request'):
|
45 |
start = time()
|
src/common.py
CHANGED
@@ -39,7 +39,7 @@ def generate_group_tag() -> str:
|
|
39 |
Generates a pseduo-random test group ID for tagging requests which
|
40 |
should be considered together
|
41 |
"""
|
42 |
-
return f"TestGroup_{randint(100, 999)}_{time()}"
|
43 |
|
44 |
|
45 |
def hf_api_token(write: bool = False) -> str:
|
|
|
39 |
Generates a pseduo-random test group ID for tagging requests which
|
40 |
should be considered together
|
41 |
"""
|
42 |
+
return f"TestGroup_{randint(100, 999)}_{int(time())}"
|
43 |
|
44 |
|
45 |
def hf_api_token(write: bool = False) -> str:
|