D0k-tor commited on
Commit
7d5aedc
·
1 Parent(s): 622e182

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -63,12 +63,15 @@ with gr.Blocks() as demo:
63
  TextDiffuser: Diffusion Models as Text Painters
64
  </h1>
65
  <h2 style="text-align: left; font-weight: 450; font-size: 1rem; margin-top: 0.5rem; margin-bottom: 0.5rem">
66
- We propose <b>TextDiffuser</b>, a flexible and controllable framework to generate images with visually appealing text that is coherent with backgrounds.
67
- Main features include: (a) <b><font color="#A52A2A">Text-to-Image</font></b>: The user provides a prompt and encloses the keywords with single quotes (e.g., a text image of ‘hello’). The model first determines the layout of the keywords and then draws the image based on the layout and prompt. (b) <b><font color="#A52A2A">Text-to-Image with Templates</font></b>: The user provides a prompt and a template image containing text, which can be a printed, handwritten, or scene text image. These template images can be used to determine the layout of the characters. (c) <b><font color="#A52A2A">Text Inpainting</font></b>: The user provides an image and specifies the region to be modified along with the desired text content. The model is able to modify the original text or add text to areas without text.
68
  </h2>
 
69
  </div>
70
  """)
71
- gr.inputs.Image(label="Upload any Image", type = 'pil', optional=True)
72
- gr.outputs.Textbox(type="text",label="Captions")
 
 
 
73
 
74
  demo.launch()
 
63
  TextDiffuser: Diffusion Models as Text Painters
64
  </h1>
65
  <h2 style="text-align: left; font-weight: 450; font-size: 1rem; margin-top: 0.5rem; margin-bottom: 0.5rem">
66
+ We propose <b>Image to Text</b>, with ViT model but with LORA fine-tuning.
 
67
  </h2>
68
+ <p></p>
69
  </div>
70
  """)
71
+ # gr.inputs.Image(label="Upload any Image", type = 'pil', optional=True)
72
+ # gr.outputs.Textbox(type="text",label="Captions")
73
+ gr.Image(label="Upload any Image", type = 'pil', optional=True)
74
+ gr.Textbox(type="text",label="Captions")
75
+
76
 
77
  demo.launch()