Spaces:
Runtime error
Runtime error
Create new file
Browse files
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()
|