Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -157,7 +157,10 @@ if __name__ == '__main__':
|
|
| 157 |
fn=generate_and_display,
|
| 158 |
inputs=[gr.Textbox(lines=2, placeholder="Enter a prompt for descriptions..."), gr.Textbox(lines=2, placeholder='Enter seed words in quotes, e.g., "cat", "dog", "sunset"...')],
|
| 159 |
outputs=[gr.Textbox(label="Generated Descriptions"), gr.Gallery(label="Generated Images")],
|
| 160 |
-
live=
|
|
|
|
|
|
|
|
|
|
| 161 |
)
|
| 162 |
|
| 163 |
interface.launch(share=True)
|
|
|
|
| 157 |
fn=generate_and_display,
|
| 158 |
inputs=[gr.Textbox(lines=2, placeholder="Enter a prompt for descriptions..."), gr.Textbox(lines=2, placeholder='Enter seed words in quotes, e.g., "cat", "dog", "sunset"...')],
|
| 159 |
outputs=[gr.Textbox(label="Generated Descriptions"), gr.Gallery(label="Generated Images")],
|
| 160 |
+
live=False, # Set live to False
|
| 161 |
+
allow_flagging='never', # Disable flagging
|
| 162 |
+
allow_screenshot=False, # Disable screenshots
|
| 163 |
+
clear_button=True # Add a clear button
|
| 164 |
)
|
| 165 |
|
| 166 |
interface.launch(share=True)
|