Spaces:
Sleeping
Sleeping
Commit
·
54536dd
1
Parent(s):
4040509
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def warmup(model_list=warmup_test, model_inference_endpoints=inference_endpoint)
|
|
64 |
"inputs": "Hello. "
|
65 |
})
|
66 |
|
67 |
-
time.sleep(
|
68 |
return {
|
69 |
options: gr.update(visible=True),
|
70 |
inputbox: gr.update(visible=True),
|
@@ -78,7 +78,7 @@ def inference(model_list, question, API_KEY, cot, hf_token=HF_TOKEN):
|
|
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[
|
82 |
|
83 |
model_response = Inference(model_list, question, API_KEY, cot, hf_token)
|
84 |
|
|
|
64 |
"inputs": "Hello. "
|
65 |
})
|
66 |
|
67 |
+
time.sleep(1)
|
68 |
return {
|
69 |
options: gr.update(visible=True),
|
70 |
inputbox: gr.update(visible=True),
|
|
|
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 |
|