Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,12 +5,12 @@ openai.api_key = "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"
|
|
5 |
|
6 |
def openai_chat(input_prompt):
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
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
|