Aishwarya Solanki commited on
Commit
0c6486f
·
1 Parent(s): 8400e3c

Refining UI

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -97,12 +97,12 @@ def generate_text_llama(key, prompt, temperature, top_p):
97
  return response
98
 
99
 
100
- def diagnose(key, model, top_k, temperature, symptom_prompt):
101
 
102
- if symptom_prompt:
103
- gpt_message = generate_text_chatgpt(key, symptom_prompt, temperature, top_k)
104
- llama_message = generate_text_llama(key, symptom_prompt, temperature, top_k)
105
- gemini_message = generate_text_gemini(key, symptom_prompt, temperature, top_k)
106
 
107
  outputs = [gpt_message, llama_message, gemini_message]
108
  output_counts = Counter(outputs)
 
97
  return response
98
 
99
 
100
+ def diagnose(gpt_key, llama_key, gemini_key, top_p, temperature, symptoms):
101
 
102
+ if symptoms:
103
+ gpt_message = generate_text_chatgpt(gpt_key, symptoms, temperature, top_p)
104
+ llama_message = generate_text_llama(llama_key, symptoms, temperature, top_p)
105
+ gemini_message = generate_text_gemini(gemini_key, symptoms, temperature, top_p)
106
 
107
  outputs = [gpt_message, llama_message, gemini_message]
108
  output_counts = Counter(outputs)