Spaces:
Sleeping
Sleeping
Aishwarya Solanki
commited on
Commit
·
0c6486f
1
Parent(s):
8400e3c
Refining UI
Browse files
app.py
CHANGED
@@ -97,12 +97,12 @@ def generate_text_llama(key, prompt, temperature, top_p):
|
|
97 |
return response
|
98 |
|
99 |
|
100 |
-
def diagnose(
|
101 |
|
102 |
-
if
|
103 |
-
gpt_message = generate_text_chatgpt(
|
104 |
-
llama_message = generate_text_llama(
|
105 |
-
gemini_message = generate_text_gemini(
|
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)
|