Update app.py
Browse files
app.py
CHANGED
|
@@ -37,10 +37,24 @@ demo = gr.Interface(
|
|
| 37 |
],
|
| 38 |
outputs="json",
|
| 39 |
title=f"Chinese Context Dialogue Generator 🐰 demonstration",
|
| 40 |
-
|
| 41 |
-
description = description,
|
| 42 |
examples=example_sample if example_sample else None,
|
| 43 |
cache_examples = False
|
| 44 |
)
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
demo.launch(server_name=None, server_port=None)
|
|
|
|
| 37 |
],
|
| 38 |
outputs="json",
|
| 39 |
title=f"Chinese Context Dialogue Generator 🐰 demonstration",
|
| 40 |
+
description = 'This _example_ was **drive** from <br/><b><h4>[https://github.com/svjack/Context2Dialogue](https://github.com/svjack/Context2Dialogue)</h4></b>\n',
|
| 41 |
+
#description = description,
|
| 42 |
examples=example_sample if example_sample else None,
|
| 43 |
cache_examples = False
|
| 44 |
)
|
| 45 |
|
| 46 |
+
with demo:
|
| 47 |
+
gr.HTML(
|
| 48 |
+
'''
|
| 49 |
+
<div style="justify-content: center; display: flex;">
|
| 50 |
+
<iframe
|
| 51 |
+
src="https://svjack-chatglm3-few-shot-demo.hf.space/?input_list_index=7"
|
| 52 |
+
frameborder="0"
|
| 53 |
+
width="1400"
|
| 54 |
+
height="768"
|
| 55 |
+
></iframe>
|
| 56 |
+
</div>
|
| 57 |
+
'''
|
| 58 |
+
)
|
| 59 |
+
|
| 60 |
demo.launch(server_name=None, server_port=None)
|