D0k-tor commited on
Commit
47fb79d
·
1 Parent(s): 389eeec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -11
app.py CHANGED
@@ -34,17 +34,12 @@ input = gr.inputs.Image(label="Upload any Image", type = 'pil', optional=True)
34
  output = gr.outputs.Textbox(type="text",label="Captions")
35
  examples = ["example1.jpg"]
36
  print("------------------------- 6 -------------------------\n")
37
- # title = "Image to - Text"
38
  description = """
39
- <div style="text-align: center; max-width: 1200px; margin: 20px auto;">
40
- <h1 style="font-weight: 900; font-size: 3rem; margin: 0rem">
41
- Image-to-Text with [Lora](https://huggingface.co/blog/lora) and Vit
42
- </h1>
43
- <h2 style="text-align: left; font-weight: 450; font-size: 1rem; margin-top: 0.5rem; margin-bottom: 0.5rem">
44
- We propose <b>TextDiffuser</b>, a flexible and controllable framework to generate images with visually appealing text that is coherent with backgrounds.
45
- 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.
46
- </h2>
47
- </div>
48
  """
49
  interface = gr.Interface(
50
 
@@ -54,6 +49,6 @@ interface = gr.Interface(
54
  theme="grass",
55
  outputs=output,
56
  examples = examples,
57
- # title=title,
58
  )
59
  interface.launch(debug=True)
 
34
  output = gr.outputs.Textbox(type="text",label="Captions")
35
  examples = ["example1.jpg"]
36
  print("------------------------- 6 -------------------------\n")
37
+ # title = "Image to Text ViT with LORA"
38
  description = """
39
+ # This is a Heading
40
+ This is a paragraph.
41
+ - Item 1
42
+ - Item 2
 
 
 
 
 
43
  """
44
  interface = gr.Interface(
45
 
 
49
  theme="grass",
50
  outputs=output,
51
  examples = examples,
52
+ title=title,
53
  )
54
  interface.launch(debug=True)