Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import tempfile
|
|
5 |
import os
|
6 |
import ast
|
7 |
import requests
|
|
|
8 |
|
9 |
from chatgpt_api import get_chatgpt_response
|
10 |
|
@@ -79,7 +80,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
79 |
with gr.Row():
|
80 |
inputs=gr.File(label="CSVγγ‘γ€γ«γγ’γγγγΌγ")
|
81 |
outputs=gr.File(label="γγ¦γ³γγΌγ", file_count="singular")
|
82 |
-
gr.Button("
|
83 |
create_choice_question,
|
84 |
inputs=[inputs],
|
85 |
outputs=[outputs]
|
@@ -89,7 +90,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
89 |
with gr.Row():
|
90 |
inputs=gr.File(label="CSVγγ‘γ€γ«γγ’γγγγΌγ")
|
91 |
outputs=gr.File(label="γγ¦γ³γγΌγ", file_count="singular")
|
92 |
-
gr.Button("
|
93 |
create_choice_question,
|
94 |
inputs=[inputs],
|
95 |
outputs=[outputs]
|
|
|
5 |
import os
|
6 |
import ast
|
7 |
import requests
|
8 |
+
import re
|
9 |
|
10 |
from chatgpt_api import get_chatgpt_response
|
11 |
|
|
|
80 |
with gr.Row():
|
81 |
inputs=gr.File(label="CSVγγ‘γ€γ«γγ’γγγγΌγ")
|
82 |
outputs=gr.File(label="γγ¦γ³γγΌγ", file_count="singular")
|
83 |
+
gr.Button("ει‘ηζ").click(
|
84 |
create_choice_question,
|
85 |
inputs=[inputs],
|
86 |
outputs=[outputs]
|
|
|
90 |
with gr.Row():
|
91 |
inputs=gr.File(label="CSVγγ‘γ€γ«γγ’γγγγΌγ")
|
92 |
outputs=gr.File(label="γγ¦γ³γγΌγ", file_count="singular")
|
93 |
+
gr.Button("ει‘ηζ").click(
|
94 |
create_choice_question,
|
95 |
inputs=[inputs],
|
96 |
outputs=[outputs]
|