zjrwtx commited on
Commit
e2f03de
1 Parent(s): 757a0eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -5,12 +5,12 @@ openai.api_key = "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"
5
 
6
  def openai_chat(input_prompt):
7
 
8
- # template = """
9
- # Sentence: India won the 1983 Cricket World Cup which was the 3rd edition of the Cricket World Cup tournament.
10
- # Question: Who won the 1983 Cricket World Cup ______ ? Answer: India
11
- # Sentence: Google was founded on September 4, 1998, by Larry Page and Sergey Brin.
12
- # Question: In which year was Google founded ______? Answer: 1998
13
- # """
14
 
15
  input_prompt = "Sentence: " + input_prompt
16
  prompt = template + input_prompt
 
5
 
6
  def openai_chat(input_prompt):
7
 
8
+ template = """
9
+ Sentence: India won the 1983 Cricket World Cup which was the 3rd edition of the Cricket World Cup tournament.
10
+ Question: Who won the 1983 Cricket World Cup ______ ? Answer: India
11
+ Sentence: Google was founded on September 4, 1998, by Larry Page and Sergey Brin.
12
+ Question: In which year was Google founded ______? Answer: 1998
13
+ """
14
 
15
  input_prompt = "Sentence: " + input_prompt
16
  prompt = template + input_prompt