Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
from inference import generate_image
|
| 3 |
+
|
| 4 |
+
# Gradio UI
|
| 5 |
+
demo = gr.Interface(
|
| 6 |
+
fn=generate_image,
|
| 7 |
+
inputs=gr.Textbox(placeholder="Describe your image..."),
|
| 8 |
+
outputs="image",
|
| 9 |
+
title="Text to Image Generator",
|
| 10 |
+
description="Powered by cloudqi/cqi_text_to_image_pt_v0"
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
demo.launch()
|