changxin commited on
Commit
186335f
·
1 Parent(s): 0079a4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,8 +49,8 @@ def pyecharts1():
49
  bar.add_xaxis(["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"])
50
  bar.add_yaxis("商家A", [5, 20, 36, 10, 75, 90])
51
  bar.render('test.html')
52
- aa=requests.get('test.html')
53
- return 'test.html',aa.text
54
  def cff():
55
 
56
  df=pd.DataFrame([[0.2,0.4,0.6],[0.4,0.3,0.4],[0.4,0.5,0.2],[0.5,0.4,0.4]],columns=['a','b','c'])
 
49
  bar.add_xaxis(["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"])
50
  bar.add_yaxis("商家A", [5, 20, 36, 10, 75, 90])
51
  bar.render('test.html')
52
+ aa=open('test.html',"r",encoding="utf-8")
53
+ return 'test.html',aa.read()
54
  def cff():
55
 
56
  df=pd.DataFrame([[0.2,0.4,0.6],[0.4,0.3,0.4],[0.4,0.5,0.2],[0.5,0.4,0.4]],columns=['a','b','c'])