IMAGE-GEN / app.py
AdarshJi's picture
Create app.py
cf44863 verified
raw
history blame contribute delete
235 Bytes
import gradio as gr
model = gr.load("models/strangerzonehf/Flux-Midjourney-Mix2-LoRA")
def generate_image(prompt):
return model.predict(prompt)
api = gr.Interface(fn=generate_image, inputs="text", outputs="image")
api.launch()