fittar commited on
Commit
242e890
1 Parent(s): d0368b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -5
app.py CHANGED
@@ -35,14 +35,21 @@ def generate(text):
35
  examples = [
36
  ["Is string theory right?"],
37
  ["She felt like a flower in December"],
38
- ["2+2=4?"],
39
  ]
40
 
 
 
 
 
 
41
  demo = gr.Interface(
42
  fn =generate,
43
- inputs=gr.inputs.Textbox(lines=5, label="Arbitrary Input Text"),
44
- outputs=gr.outputs.Textbox(label="Generated Prompt for Visualizations"),
45
- examples=examples
 
 
46
  )
47
 
48
- demo.launch()
 
35
  examples = [
36
  ["Is string theory right?"],
37
  ["She felt like a flower in December"],
38
+ ["2+2=4?"]
39
  ]
40
 
41
+ title = "ViPE: Visualize Pretty-much Everything"
42
+ description = 'ViPE is the first automated model for translating any arbitrary piece of text into a visualizable prompt. It helps any text-to-image model in figurative or non-lexical language visualizations. To learn more about the model, [click here](https://huggingface.co/fittar/ViPE-M-CTX7).<br>'
43
+ txt = grad.Textbox(lines=1, label="Initial Text", placeholder="Arbitrary Input Text")
44
+ out = grad.Textbox(lines=4, label="Generated Prompt for Visualizations")
45
+
46
  demo = gr.Interface(
47
  fn =generate,
48
+ inputs=txt,
49
+ outputs=out,
50
+ examples=examples,
51
+ title=title,
52
+ description=description,
53
  )
54
 
55
+ demo.launch(share=True)