zwq2018 commited on
Commit
2d60caa
·
1 Parent(s): 0f5e34e

modified: app_with_key.py

Browse files
Files changed (2) hide show
  1. app_with_key.py +2 -2
  2. main.py +3 -3
app_with_key.py CHANGED
@@ -23,8 +23,8 @@ css = """#col-container {max-width: 90%; margin-left: auto; margin-right: auto;
23
  # plt.rcParams['font.sans-serif'] = ['Arial Unicode MS']
24
  # plt.rcParams['axes.unicode_minus'] = False
25
 
26
- plt.rcParams['font.sans-serif'] = ['WenQuanYi Zen Hei', 'Noto Sans CJK']
27
- plt.rcParams['axes.unicode_minus'] = False
28
 
29
 
30
  example_stock =['给我画一下可孚医疗2022年年中到今天的股价','北向资金今年的每日流入和累计流入','看一下近三年宁德时代和贵州茅台的pb变化','画一下五粮液和泸州老窖从2019年年初到2022年年中的收益率走势','成都银行近一年的k线图和kdj指标','比较下沪深300,创业板指,中证1000指数今年的收益率','今年上证50所有成分股的收益率是多少']
 
23
  # plt.rcParams['font.sans-serif'] = ['Arial Unicode MS']
24
  # plt.rcParams['axes.unicode_minus'] = False
25
 
26
+ # plt.rcParams['font.sans-serif'] = ['WenQuanYi Zen Hei', 'Noto Sans CJK']
27
+ # plt.rcParams['axes.unicode_minus'] = False
28
 
29
 
30
  example_stock =['给我画一下可孚医疗2022年年中到今天的股价','北向资金今年的每日流入和累计流入','看一下近三年宁德时代和贵州茅台的pb变化','画一下五粮液和泸州老窖从2019年年初到2022年年中的收益率走势','成都银行近一年的k线图和kdj指标','比较下沪深300,创业板指,中证1000指数今年的收益率','今年上证50所有成分股的收益率是多少']
main.py CHANGED
@@ -18,8 +18,8 @@ from io import BytesIO
18
  import queue
19
  import datetime
20
  from threading import Thread
21
- plt.rcParams['font.sans-serif'] = ['Arial Unicode MS']
22
- plt.rcParams['axes.unicode_minus'] = False
23
  import openai
24
 
25
 
@@ -359,7 +359,7 @@ def run(instruction, add_to_queue=None, send_chat_request_Azure = send_official_
359
  return output_text, image, output_result, df
360
 
361
 
362
- def gradio_interface(query, openai_key, openai_key_azure, api_base,engine):
363
  # Create a new thread to run the function.
364
  placeholder_dataframe = pd.DataFrame()
365
  placeholder_image = np.zeros((100, 100, 3), dtype=np.uint8) # Create a placeholder image.
 
18
  import queue
19
  import datetime
20
  from threading import Thread
21
+ # plt.rcParams['font.sans-serif'] = ['Arial Unicode MS']
22
+ # plt.rcParams['axes.unicode_minus'] = False
23
  import openai
24
 
25
 
 
359
  return output_text, image, output_result, df
360
 
361
 
362
+ def gradio_interface(query, openai_key, openai_key_azure, api_base, engine):
363
  # Create a new thread to run the function.
364
  placeholder_dataframe = pd.DataFrame()
365
  placeholder_image = np.zeros((100, 100, 3), dtype=np.uint8) # Create a placeholder image.