an class="n">torch</span><span class="o">.</span><span class="n">device</span><span class="p">(</span><span class="s2">&quot;cuda&quot;</span><span class="p">)</span>
</pre></div>
</div>
</section>
<section id="image-generation-using-prompt">
<h2>Image generation using prompt<a class="headerlink" href="#image-generation-using-prompt" title="Permalink to this heading">¶</a></h2>
<p>Provide a prompt and the file name of the image to be generated. Here we use the
prompt <code class="docutils literal notransla