Michael Ramos
commited on
Commit
·
feed5b6
1
Parent(s):
496b05b
add simple instructions
Browse files
app.py
CHANGED
@@ -125,17 +125,22 @@ async def predict(prompt):
|
|
125 |
|
126 |
# Create the Gradio interface
|
127 |
with gr.Blocks() as app:
|
|
|
|
|
|
|
|
|
|
|
128 |
with gr.Row():
|
129 |
with gr.Column():
|
|
|
130 |
prompt = gr.Textbox(label="I see...")
|
131 |
-
image_gallery = gr.Gallery(value=images, columns=4) # Adjust number of columns as needed
|
132 |
with gr.Column():
|
133 |
output = gr.Image(label="Generation")
|
134 |
|
135 |
-
button = gr.Button("Rorschachify!")
|
136 |
|
137 |
image_gallery.select(select_fn, inputs=[prompt], outputs=output, show_progress=False)
|
138 |
-
button.click(fn=predict, inputs=[prompt], outputs=output, show_progress=False)
|
139 |
prompt.change(fn=predict, inputs=[prompt], outputs=output, show_progress=False)
|
140 |
|
141 |
# Run the app
|
|
|
125 |
|
126 |
# Create the Gradio interface
|
127 |
with gr.Blocks() as app:
|
128 |
+
gr.Markdown('''# LoRA Ease 🧞♂️
|
129 |
+
### 1. Select a CRASH REPORT image
|
130 |
+
### 2. Describe what you see
|
131 |
+
<small>CRASH REPORT was a self-published, 72-page book by NoPattern Studio released in November, 2019. Limited to an edition of 300, the book contained a year's worth of experimental, exploratory 3D imagery generated entirely in Photoshop. [CRASH REPORT site](https://nopattern.com/CRASH-REPORT) [see this space's lineage graph](https://huggingface.co/spaces/EQTYLab/lineage-explorer?repo=https://huggingface.co/NoPattern/Rorschach)</small>''', elem_id="main_title")
|
132 |
+
#gr.LoginButton(elem_classes=["login_logout"])
|
133 |
with gr.Row():
|
134 |
with gr.Column():
|
135 |
+
image_gallery = gr.Gallery(value=images, columns=4)
|
136 |
prompt = gr.Textbox(label="I see...")
|
|
|
137 |
with gr.Column():
|
138 |
output = gr.Image(label="Generation")
|
139 |
|
140 |
+
# button = gr.Button("Rorschachify!")
|
141 |
|
142 |
image_gallery.select(select_fn, inputs=[prompt], outputs=output, show_progress=False)
|
143 |
+
# button.click(fn=predict, inputs=[prompt], outputs=output, show_progress=False)
|
144 |
prompt.change(fn=predict, inputs=[prompt], outputs=output, show_progress=False)
|
145 |
|
146 |
# Run the app
|