Aishwarya Solanki commited on
Commit
1cb1ec9
·
1 Parent(s): cd8f387

Refining UI

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -105,9 +105,9 @@ def diagnose(gpt_key, llama_key, gemini_key, top_p, temperature, symptoms):
105
  prompt += "Do not list the symptoms again in the response. Do not add any additional text. Do not attempt to explain your answer."
106
  prompt += symptoms
107
  prompt += "Your Diagnosis: []"
108
- gpt_message = generate_text_chatgpt(gpt_key, symptoms, temperature, top_p)
109
- llama_message = generate_text_llama(llama_key, symptoms, temperature, top_p)
110
- gemini_message = generate_text_gemini(gemini_key, symptoms, temperature, top_p)
111
 
112
  outputs = [gpt_message, llama_message, gemini_message]
113
  output_counts = Counter(outputs)
@@ -117,7 +117,7 @@ def diagnose(gpt_key, llama_key, gemini_key, top_p, temperature, symptoms):
117
  majority_output = "Please add the symptoms data to start the ranking process."
118
  confidence = 0
119
 
120
- return majority_output, confidence
121
 
122
  def update_model_components(selected_model):
123
  model_map = {
 
105
  prompt += "Do not list the symptoms again in the response. Do not add any additional text. Do not attempt to explain your answer."
106
  prompt += symptoms
107
  prompt += "Your Diagnosis: []"
108
+ gpt_message = generate_text_chatgpt(gpt_key, prompt, temperature, top_p)
109
+ llama_message = generate_text_llama(llama_key, prompt, temperature, top_p)
110
+ gemini_message = generate_text_gemini(gemini_key, prompt, temperature, top_p)
111
 
112
  outputs = [gpt_message, llama_message, gemini_message]
113
  output_counts = Counter(outputs)
 
117
  majority_output = "Please add the symptoms data to start the ranking process."
118
  confidence = 0
119
 
120
+ return outputs, majority_output, confidence
121
 
122
  def update_model_components(selected_model):
123
  model_map = {