sayedM commited on
Commit
80abacb
·
1 Parent(s): 64feb60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -16
app.py CHANGED
@@ -62,20 +62,7 @@ image_input = gr.inputs.Image()
62
  text_input = gr.inputs.Textbox(label="Prompt") # New input for the text prompt
63
 
64
  # Define the output components for Gradio (including both image and text)
65
- outputs = gr.Image(type="numpy", label="Output Image")
66
 
67
- # Launch the Gradio interface
68
- gr.HTML(
69
- """
70
- <div class="footer">
71
- <p>Model by <a href="https://deci.ai" style="text-decoration: underline;" target="_blank">Deci.ai</a> - Gradio Demo by 🤗 Hugging Face
72
- </p>
73
- </div>
74
- <div class="acknowledgments">
75
- <p><h4>LICENSE</h4>
76
- <p><h4>Biases and content acknowledgment</h4>
77
- Despite how impressive being able to turn text into image is, beware to the fact that this model may output content that reinforces or exacerbates societal biases, as well as realistic faces, pornography and violence. The model was trained on the <a href="https://laion.ai/blog/laion-5b/" style="text-decoration: underline;" target="_blank">LAION-5B dataset</a>, which scraped non-curated image-text-pairs from the internet (the exception being the removal of illegal content) and is meant for research purposes. You can read more in the <a href="https://huggingface.co/Deci/DeciDiffusion-v1-0" style="text-decoration: underline;" target="_blank">model card</a></p>
78
- </div>
79
- """
80
- )
81
- gr.Interface(fn=get_results, inputs=[image_input, text_input], outputs=outputs).launch(share=False)
 
62
  text_input = gr.inputs.Textbox(label="Prompt") # New input for the text prompt
63
 
64
  # Define the output components for Gradio (including both image and text)
65
+ description = "This is a project description. It demonstrates how to use Gradio with an image and text input to interact with an API."
66
 
67
+ # Launch the Gradio interface with the description
68
+ gr.Interface(fn=get_results, inputs=[image_input, text_input], outputs=outputs, description=description).launch(share=False)