AjayP13 commited on
Commit
f3c93c4
·
verified ·
1 Parent(s): 0fbe474

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -113,10 +113,14 @@ with gr.Blocks(theme="ParityError/[email protected]") as demo:
113
  get_simcse_model(device)
114
  print("Done loading models.", time())
115
 
116
- gr.Markdown("# TinyStyler Demo")
117
- gr.Markdown(
118
- "Style transfer the source text into the target style, given some example texts of the target style. You can adjust re-ranking and top_p to your desire to control the quality of style transfer. A higher re-ranking value will generally result in better generations, at slower speed.\n\nYou can find the model at [https://huggingface.co/tinystyler/tinystyler](https://huggingface.co/tinystyler/tinystyler).\n\n*Please note: this demo runs on a CPU-only machine, generation is much faster when run locally with a GPU.*"
119
- )
 
 
 
 
120
 
121
  with gr.Row():
122
  example_dropdown = gr.Dropdown(
 
113
  get_simcse_model(device)
114
  print("Done loading models.", time())
115
 
116
+ gr.Markdown("""
117
+ <table style="border: none;">
118
+ <tr style="border: none;">
119
+ <td style="border: none;"><img style="margin: 0" src="https://cdn-avatars.huggingface.co/v1/production/uploads/61c40eeb727d1257bf3cf5ba/k-npb3L2TEnhBECzjXPGK.png" width=165></td>
120
+ <td style="border: none; vertical-align: middle;"><h1>TinyStyler Demo</h1>Style transfer the source text into the target style, given some example texts of the target style. You can adjust re-ranking and top_p to your desire to control the quality of style transfer. A higher re-ranking value will generally result in better generations, at slower speed.<br/><br/>You can find the model at <a href="https://huggingface.co/tinystyler/tinystyler">https://huggingface.co/tinystyler/tinystyler</a><br/><br/><em>Please note: this demo runs on a CPU-only machine, generation is much faster when run locally with a GPU.</em></td>
121
+ </tr>
122
+ </table>
123
+ """)
124
 
125
  with gr.Row():
126
  example_dropdown = gr.Dropdown(