isaiah08 commited on
Commit
3aeb8d5
1 Parent(s): 1cba1f1

Create new file

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import replicate
2
+ import gradio as gr
3
+
4
+ def ai(text):
5
+ dalle = replicate.models.get("borisdayma/dalle-mini")
6
+ output = dalle.predict(prompt=text)
7
+ return output
8
+
9
+ demo = gr.Interface(fn=ai, inputs="image", outputs="image")
10
+ demo.launch()