D0k-tor commited on
Commit
389eeec
·
1 Parent(s): 917196e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -35,8 +35,7 @@ output = gr.outputs.Textbox(type="text",label="Captions")
35
  examples = ["example1.jpg"]
36
  print("------------------------- 6 -------------------------\n")
37
  # title = "Image to - Text"
38
- description = gr.HTML(
39
- """
40
  <div style="text-align: center; max-width: 1200px; margin: 20px auto;">
41
  <h1 style="font-weight: 900; font-size: 3rem; margin: 0rem">
42
  Image-to-Text with [Lora](https://huggingface.co/blog/lora) and Vit
@@ -46,7 +45,7 @@ description = gr.HTML(
46
  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.
47
  </h2>
48
  </div>
49
- """)
50
  interface = gr.Interface(
51
 
52
  fn=predict,
 
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
 
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
 
51
  fn=predict,