JoPmt's picture
Create app.py
f6883b6 verified
raw
history blame contribute delete
343 Bytes
import gradio as gr
from gradio_client import Client
apol=[]
def greet(name):
client = Client("https://stabilityai-stable-diffusion-3-medium.hf.space/")
goes = client.predict(name,"bad quality",0,True,512,512,5,28,)
apol.append(goes[0])
return apol
demo = gr.Interface(fn=greet, inputs="text", outputs="gallery")
demo.launch()