Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,11 @@ def main():
|
|
54 |
def greet(prompt):
|
55 |
return pipeline(prompt, max_length=50, num_return_sequences=3)
|
56 |
|
57 |
-
ui = gr.Interface(
|
|
|
|
|
|
|
|
|
58 |
ui.launch()
|
59 |
|
60 |
pipeline = get_stable_diffusion_v15_pipeline()
|
|
|
54 |
def greet(prompt):
|
55 |
return pipeline(prompt, max_length=50, num_return_sequences=3)
|
56 |
|
57 |
+
ui = gr.Interface(
|
58 |
+
fn=greet,
|
59 |
+
inputs=gr.Textbox(lines=2, placeholder="Enter some text here..."),
|
60 |
+
outputs="text"
|
61 |
+
)
|
62 |
ui.launch()
|
63 |
|
64 |
pipeline = get_stable_diffusion_v15_pipeline()
|