patrickbdevaney commited on
Commit
292be6f
·
verified ·
1 Parent(s): 776a3ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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=True
 
 
 
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)