Spaces:
Running
Running
Commit
·
0ec8313
1
Parent(s):
8631ee5
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,8 @@ def generate_qna(context,input_radio,q1,q2,q3,q4,q5):
|
|
31 |
return dic.get('0',''),dic.get('1',''),dic.get('2',''),dic.get('3',''),dic.get('4','')
|
32 |
|
33 |
def return_lan_para(radio_value):
|
34 |
-
|
|
|
35 |
if radio_value == 'English':
|
36 |
context = '''Google was founded in 1998 by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University in California. Together they own about 14 percent of its shares and control 56 percent of the stockholder voting power through supervoting stock. They incorporated Google as a privately held company on September 4, 1998. An initial public offering (IPO) took place on August 19, 2004, and Google moved to its headquarters in Mountain View, California, nicknamed the Googleplex. In August 2015, Google announced plans to reorganize its various interests as a conglomerate called Alphabet Inc. Google is Alphabet's leading subsidiary and will continue to be the umbrella company for Alphabet's Internet interests. Sundar Pichai was appointed CEO of Google, replacing Larry Page who became the CEO of Alphabet.'''
|
37 |
que_list=['Who is current CEO?','What is IPO?','Where is headquarter of Google?','','']
|
@@ -118,7 +119,7 @@ def return_lan_para(radio_value):
|
|
118 |
que_list=["Google LLC 란 무엇입니까?","Google은 무엇으로 유명합니까?","Google은 언제 출시 되었습니까?",
|
119 |
"Google은 언제 Youtube를 인수 했습니까?","Google은 무엇을 제공합니까?"]
|
120 |
|
121 |
-
if radio_value == '
|
122 |
context = '''Googleは1998年にラリーペイジとセルゲイブリンによって博士号を取得して設立されました。 カリフォルニアのスタンフォード大学の学生。 共同で彼らはその株式の約14%を所有し、スーパー投票株式を通じて株主の議決権の56%を管理しています。 1998年9月4日にGoogleを非公開会社として設立しました。2004年8月19日に新規株式公開(IPO)が行われ、Googleplexの愛称でカリフォルニア州マウンテンビューの本社に移転しました。 2015年8月、GoogleはAlphabet Incというコングロマリットとしてさまざまな利益を再編成する計画を発表しました。GoogleはAlphabetの主要な子会社であり、Alphabetのインターネット利益の傘下企業であり続けます。 Sundar PichaiはGoogleのCEOに任命され、アルファベットのCEOになったLarry Pageの後任となりました。'''
|
123 |
|
124 |
que_list=["現在のCEOは誰ですか?","IPOとは何ですか?","IPOはいつ行われましたか?","Googleが設立されたのはいつですか?",
|
|
|
31 |
return dic.get('0',''),dic.get('1',''),dic.get('2',''),dic.get('3',''),dic.get('4','')
|
32 |
|
33 |
def return_lan_para(radio_value):
|
34 |
+
context = ""
|
35 |
+
que_list = []
|
36 |
if radio_value == 'English':
|
37 |
context = '''Google was founded in 1998 by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University in California. Together they own about 14 percent of its shares and control 56 percent of the stockholder voting power through supervoting stock. They incorporated Google as a privately held company on September 4, 1998. An initial public offering (IPO) took place on August 19, 2004, and Google moved to its headquarters in Mountain View, California, nicknamed the Googleplex. In August 2015, Google announced plans to reorganize its various interests as a conglomerate called Alphabet Inc. Google is Alphabet's leading subsidiary and will continue to be the umbrella company for Alphabet's Internet interests. Sundar Pichai was appointed CEO of Google, replacing Larry Page who became the CEO of Alphabet.'''
|
38 |
que_list=['Who is current CEO?','What is IPO?','Where is headquarter of Google?','','']
|
|
|
119 |
que_list=["Google LLC 란 무엇입니까?","Google은 무엇으로 유명합니까?","Google은 언제 출시 되었습니까?",
|
120 |
"Google은 언제 Youtube를 인수 했습니까?","Google은 무엇을 제공합니까?"]
|
121 |
|
122 |
+
if radio_value == 'Japanese':
|
123 |
context = '''Googleは1998年にラリーペイジとセルゲイブリンによって博士号を取得して設立されました。 カリフォルニアのスタンフォード大学の学生。 共同で彼らはその株式の約14%を所有し、スーパー投票株式を通じて株主の議決権の56%を管理しています。 1998年9月4日にGoogleを非公開会社として設立しました。2004年8月19日に新規株式公開(IPO)が行われ、Googleplexの愛称でカリフォルニア州マウンテンビューの本社に移転しました。 2015年8月、GoogleはAlphabet Incというコングロマリットとしてさまざまな利益を再編成する計画を発表しました。GoogleはAlphabetの主要な子会社であり、Alphabetのインターネット利益の傘下企業であり続けます。 Sundar PichaiはGoogleのCEOに任命され、アルファベットのCEOになったLarry Pageの後任となりました。'''
|
124 |
|
125 |
que_list=["現在のCEOは誰ですか?","IPOとは何ですか?","IPOはいつ行われましたか?","Googleが設立されたのはいつですか?",
|