360macky / generative-manim Goto Github PK
View Code? Open in Web Editor NEW🎨 GPT for video generation ⚡️
Home Page: https://generative-manim.vercel.app
License: Apache License 2.0
🎨 GPT for video generation ⚡️
Home Page: https://generative-manim.vercel.app
License: Apache License 2.0
Hello macky.
I have a problem. I have entered my openai API, and remain report the following: Error: We couldn't generate the generated code. Please reload the page, or try again later.
Could you help me, thanks a lot.
Note that GPT4 costs 3 (input) to 6 (generated) cents for 1000 tokens, so you actually get more like 1 million tokens for $30.
Reference: https://openai.com/pricing
Your app is good and to some extent, brilliant.
However, it seems Streamlit starts rendering having only received partial code, and not the complete code for an animation.
This obviously, cause the animation not to render.
Here try this for example:
swing a double pendulum
In some cases, the scenes returned by the API can be mixed when there are multiple requests.
Example:
Code:
class GraphArrow(Scene):
def construct(self):
# Create axes and labels
axes = Axes(x_range=[0, 10], y_range=[0, 10])
x_label = MathTex(r'\text{Espaço}').scale(0.575)
y_label = MathTex(r'\text{Tempo}').scale(0.75)
labels = VGroup(x_label.next_to(axes.x_axis, RIGHT), y_label.next_to(axes.y_axis, UP))
# Create dots
d = Dot(color=WHITE, radius=0.1)
d.move_to([0, 0, 0])
d2 = Dot(color=WHITE, radius=0.1)
d2.move_to([-1, 0, 0])
# Group dots
g = VGroup(d, d2)
g.arrange()
# Create traced paths
trace = VMobject()
trace2 = VMobject()
trace_points = []
trace2_points = []
def update_trace(trace):
trace_points.append(d.get_center())
if len(trace_points) > 1:
new_path = DashedVMobject(Line(trace_points[-2], trace_points[-1]), num_dashes=1, equal_lengths=True)
trace.add(new_path)
def update_trace2(trace2):
trace2_points.append(d2.get_center())
if len(trace2_points) > 1:
new_path = DashedVMobject(Line(trace2_points[-2], trace2_points[-1]), num_dashes=1, equal_lengths=True)
trace2.add(new_path)
trace.add_updater(update_trace)
trace2.add_updater(update_trace2)
# Add elements to the scene
self.play(Write(axes), Write(labels))
self.add(d, d2, trace, trace2)
self.wait(2)
self.play(d.animate.move_to([0, 3, 0]), d2.animate.move_to([0, 2, 0]))
self.wait(2)
self.play(d.animate.move_to([0, -3, 0]), d2.animate.move_to([0, -2, 0]))
self.wait(2)
trace.clear_updaters()
trace2.clear_updaters()
Video:
Hello macky.
These days I am thinking about how to make a more general path of text -> mainm code -> video.
Since the gpt code and weights are not open, I plan to train a model by myself.
We can work together if you want.
An engine is a complete text-to-code and code-to-video generation system for Generative Manim (GM). Since there are many ways we can think about video generation, we developed multiple engines so that they can be evaluated with LangSmith.
Anyone can suggest a new way (workflow, method, technique) to generate videos.
Generative Manim will be available with a REST API.
/code-to-video
endpoint (Ready)/text-to-code
endpoint (To be enhanced)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.