Spaces:
Runtime error
Runtime error
zwq2018
commited on
Commit
·
b4d686c
1
Parent(s):
6f73642
modify app.py
Browse files
app.py
CHANGED
|
@@ -34,9 +34,9 @@ example_company =['介绍下贵州茅台,这公司是干什么的,主营业务
|
|
| 34 |
class Client:
|
| 35 |
def __init__(self) -> None:
|
| 36 |
self.OPENAI_KEY = ''
|
| 37 |
-
self.OPENAI_API_BASED_AZURE =
|
| 38 |
-
self.OPENAI_ENGINE_AZURE =
|
| 39 |
-
self.OPENAI_API_KEY_AZURE =
|
| 40 |
self.stop = False # 添加停止标志
|
| 41 |
|
| 42 |
# def set_key(self, openai_key, openai_key_azure, api_base_azure, engine_azure):
|
|
@@ -90,7 +90,7 @@ with gr.Blocks() as demo:
|
|
| 90 |
|
| 91 |
with gr.Row():
|
| 92 |
with gr.Column(scale=0.9):
|
| 93 |
-
input_text = gr.inputs.Textbox(lines=1, placeholder='Please input your problem...', label='what do you want to find? Then press Start')
|
| 94 |
|
| 95 |
with gr.Column(scale=0.1, min_width=0):
|
| 96 |
start_btn = gr.Button("Start").style(full_height=True)
|
|
|
|
| 34 |
class Client:
|
| 35 |
def __init__(self) -> None:
|
| 36 |
self.OPENAI_KEY = ''
|
| 37 |
+
self.OPENAI_API_BASED_AZURE = ''
|
| 38 |
+
self.OPENAI_ENGINE_AZURE = ''
|
| 39 |
+
self.OPENAI_API_KEY_AZURE = ''
|
| 40 |
self.stop = False # 添加停止标志
|
| 41 |
|
| 42 |
# def set_key(self, openai_key, openai_key_azure, api_base_azure, engine_azure):
|
|
|
|
| 90 |
|
| 91 |
with gr.Row():
|
| 92 |
with gr.Column(scale=0.9):
|
| 93 |
+
input_text = gr.inputs.Textbox(lines=1, placeholder='Please input your problem...', label='what do you want to find? Then press Start 输入你的问题然后点击Start')
|
| 94 |
|
| 95 |
with gr.Column(scale=0.1, min_width=0):
|
| 96 |
start_btn = gr.Button("Start").style(full_height=True)
|