首页
Angelvn博客
用户推荐
标签汇总
AI工作站
We're Story
🎓 Angelvn考研作息表
🐣10宝宝专属
Angelvn
管理员
IP归属地: 贵州
文章
44
评论
3
Angelvn-聚合
OpenAI
1
Angelvn
2 年前
贵州
推荐
Sora竟是用这些数据训练的?OpenAI CTO坦白惹众怒
OpenAI 的 Sora 在今年 2 月横空出世,把文生视频带向了新阶段。它能够根据文字提示生成超现实场景。Sora 的可适用人群受限,但是在各媒体平台上,Sora 的身影无处不在,大家都在期待着使用它。 在前几天的访谈中,三位作 ...
工具
OpenAI
331
0
加载更多
No posts found.
📖文章聚合
Hadoop-60000端口设计的编程设置
Ml
计算机网络
StackNode
入、出栈(Python版)
数据结构(Python版)
机器学习
Angelvn大数据技术之(HBase)
🌁 图集
🧑🏼💻推荐栏目
工具
Hadoop
Hbase
Kafka
Flume
Hive
Spark
Node
Python
🍟 最新评论
import numpy as np import matplotlib.pyplot as plt x = np.linspace(-10, 10, 100) # x 范围 y = 2*x + 5 plt.plot(x, y, label='y=2x+5') plt.xlabel('x') plt.ylabel('y') plt.title('y = 2x + 5') plt.grid(True) plt.legend() plt.show()
import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D # 定义 x1 和 x2 的范围 x1 = np.linspace(-5, 5, 100) x2 = np.linspace(-5, 5, 100) X1, X2 = np.meshgrid(x1, x2) # 计算 g(x) 和 y g = X1 + X2 + 1 Y = np.sin(g) # 绘制三维曲面 fig = plt.figure(figsize=(8,6)) ax = fig.add_subplot(111, projection='3d') ax.plot_surface(X1, X2, Y, cmap='viridis') ax.set_xlabel('x1') ax.set_ylabel('x2') ax.set_zlabel('y = sin(g(x))') ax.set_title('y = sin(x1 + x2 + 1)') plt.show()
from openai import OpenAI client = OpenAI( base_url='https://api-inference.modelscope.cn/v1', api_key='ms-d948e23a-7f3e-4757-8454-9558849b9fc1', # ModelScope Token ) # user_input = input("请输入你的问题:") def gen_text(msg,chat_h): chat_h.append({ 'role': 'user', 'content': msg, }) response = client.chat.completions.create( model='deepseek-ai/DeepSeek-V3.1', # ModelScope Model-Id, required messages=chat_h, stream=True ) chat_h.append({ 'role':'assistant', 'content':'' }) done_reasoning = False for chunk in response: reasoning_chunk = chunk.choices[0].delta.reasoning_content answer_chunk = chunk.choices[0].delta.content if reasoning_chunk != '': print(reasoning_chunk, end='',flush=True) elif answer_chunk != '': if not done_reasoning: print('\n\n === Final Answer ===\n') done_reasoning = True print(answer_chunk, end='',flush=True) chat_h[-1]['content'] += answer_chunk yield "",chat_h import gradio as gr with gr.Blocks() as web_app: chtgbot = gr.Chatbot(type='messages') msg = gr.Textbox() msg.submit(fn=gen_text,inputs=[msg,chtgbot],outputs=[msg,chtgbot]) web_app.launch()
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。
😍 AIGC
w
欢迎回来
登录
账号注册
忘记密码?
其他登录方式
欢迎回来
登录
账号注册
忘记密码?
其他登录方式
微信扫码登录
未注册的微信号将自动创建账号
扫码回复关键词
「登录」
获取验证码
登录
其他登录方式
免费注册
账号注册
其他登录方式
重设密码
重设密码
返回登录
确认
🍟 最新评论