Update app.py
Browse files
app.py
CHANGED
@@ -109,13 +109,11 @@ async def get_answer_llama(request: Request ):
|
|
109 |
print('proxy ip ', proxy )
|
110 |
currtime= time.time()
|
111 |
res= ""
|
112 |
-
if currtime-llama_last_error<=3600:
|
113 |
-
|
114 |
-
else:
|
115 |
-
|
116 |
-
|
117 |
dict={"LLAMA":res}
|
118 |
-
|
119 |
return JSONResponse(dict)
|
120 |
|
121 |
|
|
|
109 |
print('proxy ip ', proxy )
|
110 |
currtime= time.time()
|
111 |
res= ""
|
112 |
+
# if currtime-llama_last_error<=3600:
|
113 |
+
# res = do_ML_LLAMA70b(text,0,proxy)
|
114 |
+
# else:
|
115 |
+
res= do_ML_LLAMA70b_chori(text,0, proxy)
|
|
|
116 |
dict={"LLAMA":res}
|
|
|
117 |
return JSONResponse(dict)
|
118 |
|
119 |
|