Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -113,10 +113,14 @@ with gr.Blocks(theme="ParityError/Interstellar@0.0.1") as demo:
|
|
| 113 |
get_simcse_model(device)
|
| 114 |
print("Done loading models.", time())
|
| 115 |
|
| 116 |
-
gr.Markdown("
|
| 117 |
-
|
| 118 |
-
|
| 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(
|