mmahesh873 commited on
Commit
c54a69d
·
1 Parent(s): 662bf12

switching to os.eviron for result access

Browse files
app.py CHANGED
@@ -11,8 +11,12 @@ st.title("Microsoft Phi-2 LLM assessment")
11
  st.write("""
12
  Microsoft Phi-2 (https://huggingface.co/microsoft/phi-2) is a Transformer model with 2.7 billion parameters. Performance on benchmarks for common sense, language understanding, and logical reasoning is nearly state-of-the-art among models with less than 13 billion parameters. Unlike typical LLM models, Phi-2 has not been fine-tuned through reinforcement learning from human feedback.""")
13
 
14
- with open('llm_microsoft_phi_2_prompt_option_0_api_option_1_post_processed.json', 'r') as f:
15
- data_dict = json.load(f)
 
 
 
 
16
 
17
  st.header('Evaluation dataset')
18
  st.write(other_info_dict['data_description'])
 
11
  st.write("""
12
  Microsoft Phi-2 (https://huggingface.co/microsoft/phi-2) is a Transformer model with 2.7 billion parameters. Performance on benchmarks for common sense, language understanding, and logical reasoning is nearly state-of-the-art among models with less than 13 billion parameters. Unlike typical LLM models, Phi-2 has not been fine-tuned through reinforcement learning from human feedback.""")
13
 
14
+ import urllib.request
15
+ import os
16
+ result_file = os.environ.getattribute("POST_PROCESSING_JSON")
17
+
18
+ with urllib.request.urlopen(result_file) as url:
19
+ data_dict = json.load(url)
20
 
21
  st.header('Evaluation dataset')
22
  st.write(other_info_dict['data_description'])
llm_microsoft_phi_2_prompt_option_0_api_option_1_post_processed.json DELETED
The diff for this file is too large to render. See raw diff