OPPOA32参数配置详情介绍 oppo a32手机参数配置

 内涵001   2023-05-02 10:45:03   0 人阅读  0 条评论

IndexError: Cannot choose from an empty sequence // Werkzeug Debugger var CONSOLE_MODE = false, EVALEX = true, EVALEX_TRUSTED = false, SECRET = "Cztug1SITH6VWk19YYTC";

IndexError

IndexError: Cannot choose from an empty sequence

Traceback(most recent call last)

The above exception was the direct cause of the following exception:

File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line2551, in__call__

def __call__(self, environ: dict, start_response: t.Callable) -> t.Any:

"""The WSGI server calls the Flask application object as the

WSGI application. This calls :meth:`wsgi_app`, which can be

wrapped to apply middleware.

"""

return self.wsgi_app(environ, start_response)

File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line2531, inwsgi_app

try:

ctx.push()

response = self.full_dispatch_request()

except Exception as e:

error = e

response = self.handle_exception(e)

except: # noqa: B001

error = sys.exc_info()[1]

raise

return response(environ, start_response)

finally:

File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line2528, inwsgi_app

ctx = self.request_context(environ)

error: t.Optional[BaseException] = None

try:

try:

ctx.push()

response = self.full_dispatch_request()

except Exception as e:

error = e

response = self.handle_exception(e)

except: # noqa: B001

error = sys.exc_info()[1]

File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line1825, infull_dispatch_request

request_started.send(self)

rv = self.preprocess_request()

if rv is None:

rv = self.dispatch_request()

except Exception as e:

rv = self.handle_user_exception(e)

return self.finalize_request(rv)

def finalize_request(

self,

rv: t.Union[ft.ResponseReturnValue, HTTPException],

File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line1823, infull_dispatch_request

try:

request_started.send(self)

rv = self.preprocess_request()

if rv is None:

rv = self.dispatch_request()

except Exception as e:

rv = self.handle_user_exception(e)

return self.finalize_request(rv)

def finalize_request(

File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line1799, indispatch_request

and req.method == "OPTIONS"

):

return self.make_default_options_response()

# otherwise dispatch to the handler for that endpoint

view_args: t.Dict[str, t.Any] = req.view_args # type: ignore[assignment]

return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)

def full_dispatch_request(self) -> Response:

"""Dispatches the request and on top of that performs request

pre and postprocessing as well as HTTP exception catching and

error handling.

File "/www/wwwroot/chat.py", line39, ingen_header

# post入参访问方式二:from-data(k-v)格式参数

@api.route('/gen_header', methods=['post'])

def gen_header():

wd = flask.request.values.get('wd')

future = executor.submit(do_heavy_work,wd)

return str(future.result())

def do_heavy_work(wd):

prompt = wd

#openai.api_key = api_key_list[-1]

openai.api_key = random.choice(api_key_list)

File "/usr/local/python3/lib/python3.7/concurrent/futures/_base.py", line435, inresult

self._condition.wait(timeout)

if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:

raise CancelledError()

elif self._state == FINISHED:

return self.__get_result()

else:

raise TimeoutError()

def exception(self, timeout=None):

"""Return the exception raised by the call that the future represents.

File "/usr/local/python3/lib/python3.7/concurrent/futures/_base.py", line384, in__get_result

with self._condition:

return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED]

def __get_result(self):

if self._exception:

raise self._exception

else:

return self._result

def add_done_callback(self, fn):

"""Attaches a callable that will be called when the future finishes.IndexError: Cannot choose from an empty sequence

This is the Copy/Paste friendly version of the traceback.

concurrent.futures.process._RemoteTraceback: """Traceback (most recent call last): File "/usr/local/python3/lib/python3.7/concurrent/futures/process.py", line 239, in _process_worker r = call_item.fn(*call_item.args, **call_item.kwargs) File "/www/wwwroot/chat.py", line 44, in do_heavy_work openai.api_key = random.choice(api_key_list) File "/usr/local/python3/lib/python3.7/random.py", line 261, in choice raise IndexError('Cannot choose from an empty sequence') from NoneIndexError: Cannot choose from an empty sequence"""The above exception was the direct cause of the following exception:Traceback (most recent call last): File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 2551, in __call__ return self.wsgi_app(environ, start_response) File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 2531, in wsgi_app response = self.handle_exception(e) File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 2528, in wsgi_app response = self.full_dispatch_request() File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 1825, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 1823, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/www/wwwroot/chat.py", line 39, in gen_header return str(future.result()) File "/usr/local/python3/lib/python3.7/concurrent/futures/_base.py", line 435, in result return self.__get_result() File "/usr/local/python3/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result raise self._exceptionIndexError: Cannot choose from an empty sequenceThe debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error. If you enable JavaScript you can also use additional features such as code execution (if the evalex feature is enabled), automatic pasting of the exceptions and much more.Brought to you byDON'T PANIC, your friendly Werkzeug powered traceback interpreter.

Console Locked

The console is locked and needs to be unlocked by entering the PIN. You can find the PIN printed out on the standard output of your shell that runs the server.

PIN:

OPPO的A系列产品,一直以来都是以全面实用的功能配置、时尚的外观设计,以及实惠的价格受到众多用户的喜爱。而就在今天上午10点,OPPO A系列的全新机型OPPO A32 8GB+128GB版本正式开售,跟以往的A系列产品一样,OPPO A32在千元的价格里,给我们带来了许多亮眼且实用的配置,下面就一起来了解一下。

首先是外观方面,OPPO A32可以说是一款美感与手感并存的千元机,根据官方数据,OPPO A32机身重量为186g,厚度为8.4mm,同时在机身上采用了3D人体工学设计,拿在手上不仅轻巧无负担,而且握持也更加舒适。配色方面,OPPO A32拥有幻想蓝、薄荷绿和琉璃黑三种配色,整机看起来非常时尚,甚至可以说是同价位的颜值担当。

高刷新率屏幕和挖孔屏设计,可以说是今年旗舰机的主流,而OPPO A32虽然是一款千元机,却同样搭载了堪比旗舰的护眼灵点屏,并且支持90Hz刷新率和120Hz触控采样率。平时使用OPPO A32看视频、刷微博或者玩游戏的时候,也能获得高刷旗舰上流畅丝滑的视觉效果和跟手的触控体验。加上AI智能调光和护眼模式,在保证流畅视觉体验的同时,还能保护眼睛的健康。

OPPOA32参数配置详情介绍(oppo a32手机参数配置)-第1张图片-东江百科

除了优秀的视觉触控体验之外,OPPO A32在音效方面也有着相当不错的表现。OPPO A32顶部搭载了超线性扬声器,与底部的扬声器能够组成双立体扬声器,相比于常规单扬声器单薄不平衡的音效,OPPO A32的双扬声器能够带来更加饱满立体的声场,这也意味着在横屏玩游戏或者看电影的时候,都能有更加真实沉浸的听觉体验。

OPPOA32参数配置详情介绍(oppo a32手机参数配置)-第2张图片-东江百科

核心配置方面,OPPO A32搭载了高通骁龙8核移动处理器,加上ColorOS 7.2的系统优化,日常使用或者玩游戏都能满足。而且考虑到现在人们喜欢拍照拍视频、玩游戏或者其他App等娱乐需求,OPPO A32还标配了128GB的超大内存,可以随心所欲的下载游戏软件、拍照拍视频,不用担心因为手机内存不足影响使用体验。

续航可以说是OPPO A32最大的亮点了,虽然OPPO A32机身十分轻薄,但依然配备了一块5000mAh的超大容量电池,能够为用户提供更持久的使用时长;根据官方的数据,OPPO A32充满一次电可在线观看视频14小时,玩游戏11小时,听音乐35小时。这样的续航表现,已经能撑起绝大部分人一整天的使用了。与此同时,OPPO A32还配备了18W疾速快充,即使没电了也能迅速回血,对于现在普遍续航焦虑的消费者,OPPO A32的大电池+快充组合,还是非常不错的。

总的来看,尽管OPPO A32只是一款千元机,但各方面的配置还是非常亮眼的,例如90Hz刷新率屏幕、5000mAh的电池,轻薄的机身等等,在用户的核心体验上,OPPO A32还是非常令人满意的。目前OPPO A32 8GB+128GB版本已经正式开售,售价为1499元,首销优惠50元,到手价为1449元。如果大家需要一款大内存长续航的手机,那么OPPO A32还是值得考虑一下。

本文地址:https://www.neihan001.com/zyfx/120765.html
版权声明:免责声明:本文来源网友投稿及网络整合仅代表文章作者的个人观点,与本站无关。其原创性、真实性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容文字的真实性、完整性和原创性本站不作任何保证或承诺,请读者仅作参考,并自行核实相关内容。投诉邮箱:1765130767@qq.com.
  • 评论已关闭!