Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,15 +76,14 @@ def predict(prompt):
|
|
| 76 |
return message, message_1, message_2
|
| 77 |
|
| 78 |
title = "荀子大戰孟子"
|
| 79 |
-
article = ""
|
| 80 |
description = """
|
| 81 |
<img src="https://imgur.com/cqSzLwN.jpg" width="400px">
|
| 82 |
"""
|
| 83 |
|
| 84 |
gr.Interface(
|
| 85 |
fn=predict,
|
| 86 |
-
inputs=[gr.Textbox(label="
|
| 87 |
-
,placeholder="輸入您想討探的問題,或點選下方的範例")],
|
| 88 |
outputs=[gr.Textbox(label="辯論回合"), gr.Textbox(label="荀子"), gr.Textbox(label="孟子")],
|
| 89 |
title=title,
|
| 90 |
description=description,
|
|
|
|
| 76 |
return message, message_1, message_2
|
| 77 |
|
| 78 |
title = "荀子大戰孟子"
|
| 79 |
+
article = "1. 輸入一個題目,或者點選下方已準備好的問題\n 2. 持續按下 submit 則回合將不斷迭代\n 3. 輸入新的問題,則回合重置。"
|
| 80 |
description = """
|
| 81 |
<img src="https://imgur.com/cqSzLwN.jpg" width="400px">
|
| 82 |
"""
|
| 83 |
|
| 84 |
gr.Interface(
|
| 85 |
fn=predict,
|
| 86 |
+
inputs=[gr.Textbox(label="題目", placeholder="輸入您想討探的問題,或點選下方的範例")],
|
|
|
|
| 87 |
outputs=[gr.Textbox(label="辯論回合"), gr.Textbox(label="荀子"), gr.Textbox(label="孟子")],
|
| 88 |
title=title,
|
| 89 |
description=description,
|