Instructions to use Comfy-Org/ace_step_1.5_ComfyUI_files with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusion Single File
How to use Comfy-Org/ace_step_1.5_ComfyUI_files with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Create app.py
#9
by lollyope - opened
app.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def generate_caption(topic):
|
| 4 |
+
return f"🌾 OJA OKO STUDIO\n\n{topic} 🌱\nFresh, natural and straight from the source.\n\n#OjaOko #FarmToTable #NaijaFood"
|
| 5 |
+
|
| 6 |
+
iface = gr.Interface(
|
| 7 |
+
fn=generate_caption,
|
| 8 |
+
inputs="text",
|
| 9 |
+
outputs="text",
|
| 10 |
+
title="OJA OKO Caption Generator",
|
| 11 |
+
description="Generate captions for your farm & food content"
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
iface.launch()
|