Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,7 @@ import requests
|
|
| 8 |
import re
|
| 9 |
from chatgpt_api import get_chatgpt_response
|
| 10 |
from select_question import create_choice_question
|
|
|
|
| 11 |
|
| 12 |
def kousei(csv_file,input_text):
|
| 13 |
|
|
@@ -109,8 +110,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 109 |
with gr.Row():
|
| 110 |
inputs=gr.File(label="CSVファイルをアップロード")
|
| 111 |
outputs=gr.File(label="ダウンロード", file_count="singular")
|
| 112 |
-
gr.Button("
|
| 113 |
-
|
| 114 |
inputs=[inputs],
|
| 115 |
outputs=[outputs]
|
| 116 |
)
|
|
|
|
| 8 |
import re
|
| 9 |
from chatgpt_api import get_chatgpt_response
|
| 10 |
from select_question import create_choice_question
|
| 11 |
+
from manuscript_conversion import manuscript_conversion
|
| 12 |
|
| 13 |
def kousei(csv_file,input_text):
|
| 14 |
|
|
|
|
| 110 |
with gr.Row():
|
| 111 |
inputs=gr.File(label="CSVファイルをアップロード")
|
| 112 |
outputs=gr.File(label="ダウンロード", file_count="singular")
|
| 113 |
+
gr.Button("変換").click(
|
| 114 |
+
manuscript_conversion,
|
| 115 |
inputs=[inputs],
|
| 116 |
outputs=[outputs]
|
| 117 |
)
|