当前位置: 首页 > news >正文

沧州网站建设公司温州logo设计公司

沧州网站建设公司,温州logo设计公司,保定网站建设推广,互联网客户做网站GPT-4 Vision 系列: 翻译: GPT-4 with Vision 升级 Streamlit 应用程序的 7 种方式一翻译: GPT-4 with Vision 升级 Streamlit 应用程序的 7 种方式二 1. 将任何静态图表转换为动态数据可视化 ChatGPT Vision 不仅可以将涂鸦变成功能齐全的 Streamlit 应用程序#xff0c;还…GPT-4 Vision 系列: 翻译: GPT-4 with Vision 升级 Streamlit 应用程序的 7 种方式一翻译: GPT-4 with Vision 升级 Streamlit 应用程序的 7 种方式二 1. 将任何静态图表转换为动态数据可视化 ChatGPT Vision 不仅可以将涂鸦变成功能齐全的 Streamlit 应用程序还可以将任何静态视觉转换为美观、交互式、动态的数据可视化。 粘贴 Echarts library 库中夜莺玫瑰图 Nightingale rose chart 的屏幕截图 包括以下提示词prompt Create a nightingale/rose chart in Streamlit. The chart should be a dynamic ECharts chart, via the streamlit-echarts library. Each section should be toggleable. The color scheme of the chart should match the one in the image. 翻译如下 在 Streamlit 中创建夜莺/玫瑰图表。该图表应该是一个动态的 ECharts 图表通过 streamlit-echarts 库。每个部分都应该是可切换的。图表的配色方案应与图像中的配色方案相匹配。 将代码复制到编辑器中瞧 该应用程序在 Streamlit 中显示动态玫瑰图表其中包含图例、可切换的花瓣/部分以及忠实复制原版的调色板 2. GPT-4 实现 在Streamlit中创建一个动态的ECharts夜莺/玫瑰图表并且可以切换部分需要使用streamlit_echarts库该库允许在Streamlit应用程序中集成ECharts。以下是一个示例代码演示了如何创建这样的图表 首先确保你已经安装了必要的库 pip install streamlit streamlit_echarts 这是Streamlit应用程序的代码 import streamlit as st from streamlit_echarts import st_echarts import numpy as np# Define the data for the chart categories [frose {i} for i in range(1, 9)] values np.random.randint(10, 100, size8).tolist()# Define the initial state of each section (all enabled) initial_state {category: True for category in categories}# Define the color scheme colors [#5470c6, #91cc75, #fac858, #ee6666, #73c0de, #3ba272, #fc8452, #9a60b4]# Use session state to store the toggle states of the sections if toggle_states not in st.session_state:st.session_state.toggle_states initial_state# Define the ECharts options for the nightingale/rose chart options {tooltip: {trigger: item,formatter: {a} br/{b} : {c} ({d}%)},legend: {left: center,top: bottom,data: categories},toolbox: {show: True,feature: {saveAsImage: {show: True, title: Save Image}}},series: [{name: Roses,type: pie,radius: [20, 140],center: [50%, 50%],roseType: radius,itemStyle: {borderRadius: 5},label: {show: True},emphasis: {label: {show: True}},data: [{value: values[i], name: categories[i], itemStyle: {color: colors[i]}}for i in range(8) if st.session_state.toggle_states[categories[i]]]}] }# Checkbox for toggling sections for i, category in enumerate(categories):st.session_state.toggle_states[category] st.sidebar.checkbox(category, valuest.session_state.toggle_states[category])# Render the ECharts chart in the Streamlit app st_echarts(optionsoptions, height500px) 这个Streamlit应用程序将显示一个夜莺/玫瑰图表其中包含可以使用复选框切换打开和关闭的数据部分。颜色方案由颜色数组定义每个部分的颜色在系列选项的数据属性中设置。 要运行该应用程序请将代码保存在一个Python文件中例如nightingale_rose_chart.py然后使用Streamlit执行它。 streamlit run Vision/nightingale_rose_chart.py 请根据您的具体用例调整数值和颜色以匹配数据和配色方案。 代码 https://github.com/zgpeace/pets-name-langchain/tree/develop 参考 https://blog.streamlit.io/7-ways-gpt-4-vision-can-uplevel-your-streamlit-apps/
http://www.yingshimen.cn/news/1965/

相关文章:

  • 响应式食品企业网站网站建设费用 计入什么科目
  • 秦淮区建设局网站wordpress图片太多
  • 关闭未备案网站wordpress字体更改
  • 免费论文网站大全wordpress 外观
  • 优猫券网站怎么做有哪些专门做写字楼的网站
  • 网上书城网站开发的结论与不足太原网页设计师
  • 泉州平台网站建设全国电子网站建设
  • 计算机毕业设计代做网站做网站品牌
  • 汕头哪里学网站建设最好工作室网站备案
  • 网站可以做第三方检测报告自已建个人网站
  • 网站建设配色方案同一个网站绑定多个域名
  • 网站优化具体做哪些事情涿州城乡建设局网站
  • 广告公司寮步网站建设企业vi设计公司旅游公司logo
  • 齐齐哈尔网站建设惠山做网站公司
  • 有经验的邵阳网站建设浙江省住房和城乡建设厅官方网站
  • 如何自学网站制作乌托邦网站建设
  • 在阿里巴巴做网站多少钱2019如何注册公司支付宝
  • 用vs2010做网站的好处网站开发都是使用框架吗
  • 榆林国贸网站建设营销型网站建设标准
  • 制作网站的代码wordpress 效果
  • 山西山西省建设厅网站wordpress主题no.7
  • 电商网站建设策划车体广告设计图片
  • div嵌套影响网站收录甘肃省住房和建设厅网站服务中心
  • 专门做it招聘的网站网站的前端和后台
  • 中国印花图案设计网站建设部网站资质人员查询
  • 天津网站优化公司哪家专业网站域名提交
  • wordpress 采集微博网站优化seo技术
  • 网站信息内容建设管理打开微信公众号
  • 高端品牌网站有哪些企业建设网站的母的
  • 深圳建网站公司商标设计app