Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,9 +25,11 @@ examples = [
|
|
| 25 |
demo = gr.Interface(
|
| 26 |
fn=generate,
|
| 27 |
title="Legal Document Drafting",
|
| 28 |
-
inputs=gr.
|
| 29 |
-
outputs=gr.
|
| 30 |
-
examples=examples
|
|
|
|
| 31 |
)
|
| 32 |
|
| 33 |
-
|
|
|
|
|
|
| 25 |
demo = gr.Interface(
|
| 26 |
fn=generate,
|
| 27 |
title="Legal Document Drafting",
|
| 28 |
+
inputs=gr.components.Textbox(lines=5, label="輸入提示文字",placeholder=examples[0]),
|
| 29 |
+
outputs=gr.components.Textbox(label="生成的草稿"),
|
| 30 |
+
examples=examples,
|
| 31 |
+
cache_examples=False
|
| 32 |
)
|
| 33 |
|
| 34 |
+
if __name__ == "__main__":
|
| 35 |
+
demo.launch()
|