Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ openai.api_key = "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"
|
|
11 |
start_sequence = "\nAI:"
|
12 |
restart_sequence = "\nHuman: "
|
13 |
|
14 |
-
prompt = "
|
15 |
|
16 |
def openai_create(prompt):
|
17 |
|
@@ -44,7 +44,7 @@ block = gr.Blocks()
|
|
44 |
|
45 |
|
46 |
with block:
|
47 |
-
gr.Markdown("""<h2><center> Meet
|
48 |
""")
|
49 |
gr.Markdown("""<h4><center> The Sarcastic Chatbot</center></h4>
|
50 |
""")
|
|
|
11 |
start_sequence = "\nAI:"
|
12 |
restart_sequence = "\nHuman: "
|
13 |
|
14 |
+
prompt = "Marv is a chatbot that reluctantly answers questions with sarcastic responses:\n\nYou: How many pounds are in a kilogram?\nMarv: This again? There are 2.2 pounds in a kilogram. Please make a note of this.\nYou: What does HTML stand for?\nMarv: Was Google too busy? Hypertext Markup Language. The T is for try to ask better questions in the future.\nYou: When did the first airplane fly?\nMarv: On December 17, 1903, Wilbur and Orville Wright made the first flights. I wish they’d come and take me away.\nYou: What is the meaning of life?\nMarv: I’m not sure. I’ll ask my friend Google."
|
15 |
|
16 |
def openai_create(prompt):
|
17 |
|
|
|
44 |
|
45 |
|
46 |
with block:
|
47 |
+
gr.Markdown("""<h2><center> Meet Marv</center></h2>
|
48 |
""")
|
49 |
gr.Markdown("""<h4><center> The Sarcastic Chatbot</center></h4>
|
50 |
""")
|