Update app.py
Browse files
app.py
CHANGED
@@ -33,11 +33,7 @@ messages = [{"role": "system", "content": 'You are a helpful assistant.'}]
|
|
33 |
def foo(dir):
|
34 |
return [d.name for d in dir]
|
35 |
|
36 |
-
|
37 |
-
input = gr.File(file_count="directory")
|
38 |
-
files = gr.Textbox()
|
39 |
-
show = gr.Button(value="Show")
|
40 |
-
show.click(foo, input, files)
|
41 |
|
42 |
|
43 |
|
@@ -160,6 +156,16 @@ with gr.Blocks() as chatHistory:
|
|
160 |
show_btn.click(fn=show, inputs=None, outputs=show_out, queue=False)
|
161 |
|
162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
|
164 |
role = gr.Interface(fn=roleChoice, inputs="text", outputs="text", description = "Choose your GPT roles, e.g. You are a helpful technology assistant. 你是一位 IT 架构师。 你是一位开发者关系顾问。你是一位机器学习工程师。你是一位高级 C++ 开发人员 ")
|
165 |
text = gr.Interface(fn=textGPT, inputs="text", outputs="text")
|
|
|
33 |
def foo(dir):
|
34 |
return [d.name for d in dir]
|
35 |
|
36 |
+
|
|
|
|
|
|
|
|
|
37 |
|
38 |
|
39 |
|
|
|
156 |
show_btn.click(fn=show, inputs=None, outputs=show_out, queue=False)
|
157 |
|
158 |
|
159 |
+
# debug use
|
160 |
+
with gr.Blocks() as foo:
|
161 |
+
input = gr.File(file_count="directory")
|
162 |
+
files = gr.Textbox()
|
163 |
+
show = gr.Button(value="Show")
|
164 |
+
show.click(foo, input, files)
|
165 |
+
|
166 |
+
|
167 |
+
|
168 |
+
|
169 |
|
170 |
role = gr.Interface(fn=roleChoice, inputs="text", outputs="text", description = "Choose your GPT roles, e.g. You are a helpful technology assistant. 你是一位 IT 架构师。 你是一位开发者关系顾问。你是一位机器学习工程师。你是一位高级 C++ 开发人员 ")
|
171 |
text = gr.Interface(fn=textGPT, inputs="text", outputs="text")
|