Spaces:
Runtime error
Runtime error
johnowhitaker
commited on
Commit
·
9b86185
1
Parent(s):
1b9d6c7
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import numpy as np
|
3 |
+
|
4 |
+
def generate(text):
|
5 |
+
#todo
|
6 |
+
return np.random(128, 128, 3).astype(np.uint8)
|
7 |
+
|
8 |
+
iface = gr.Interface(fn=generate,
|
9 |
+
inputs=[
|
10 |
+
gr.inputs.Textbox(label="Text Input"),
|
11 |
+
gr.inputs.Number(default=42, label="seed")
|
12 |
+
],
|
13 |
+
outputs=[
|
14 |
+
gr.outputs.Image(type="numpy", label="Output Image")
|
15 |
+
],
|
16 |
+
).launch()
|