Spaces:
Running
Running
Commit
·
bc935c0
1
Parent(s):
55717b7
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,6 +77,9 @@ def inference(model_list, question, API_KEY, cot, hf_token=HF_TOKEN):
|
|
| 77 |
if len(model_list) != 3:
|
| 78 |
raise gr.Error("Please choose just '3' models! Neither more nor less!")
|
| 79 |
|
|
|
|
|
|
|
|
|
|
| 80 |
model_response = Inference(model_list, question, API_KEY, cot, hf_token)
|
| 81 |
|
| 82 |
return {
|
|
|
|
| 77 |
if len(model_list) != 3:
|
| 78 |
raise gr.Error("Please choose just '3' models! Neither more nor less!")
|
| 79 |
|
| 80 |
+
for i in range(len(model_list)):
|
| 81 |
+
model_list[i] = model_list[I][:-1].lower()
|
| 82 |
+
|
| 83 |
model_response = Inference(model_list, question, API_KEY, cot, hf_token)
|
| 84 |
|
| 85 |
return {
|