akhaliq HF staff commited on
Commit
10e850e
1 Parent(s): 3aaeb0b

add examples,title,description and article

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -52,7 +52,12 @@ def generate(image,context, length, temperature, top_k):
52
  )
53
 
54
  return output[0]
 
 
55
 
 
 
 
56
  iface = gr.Interface(
57
  fn=generate,
58
  inputs=[
@@ -64,7 +69,11 @@ iface = gr.Interface(
64
  gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.7, label='Temperature'),
65
  gr.inputs.Slider(minimum=0, maximum=100, default=0, step=1, label='Top K')
66
  ],
67
- outputs=["textbox"]
 
 
 
 
68
  ).launch(enable_queue=True,cache_examples=True)
69
 
70
 
 
52
  )
53
 
54
  return output[0]
55
+
56
+ examples=["woods_hi.jpeg","Describe the painting:",15,0.7,0]
57
 
58
+ title="MAGMA"
59
+ description="MAGMA -- Multimodal Augmentation of Generative Models through Adapter-based Finetuning"
60
+ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2112.05253'>MAGMA -- Multimodal Augmentation of Generative Models through Adapter-based Finetuning</a> | <a href='https://github.com/Aleph-Alpha/magma'>Github Repo</a></p>"
61
  iface = gr.Interface(
62
  fn=generate,
63
  inputs=[
 
69
  gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.7, label='Temperature'),
70
  gr.inputs.Slider(minimum=0, maximum=100, default=0, step=1, label='Top K')
71
  ],
72
+ outputs=["textbox"],
73
+ examples=examples,
74
+ title=title,
75
+ description=description,
76
+ article=article
77
  ).launch(enable_queue=True,cache_examples=True)
78
 
79