Spaces:
Running
Running
hoshingakag
commited on
Commit
•
cd05c1e
1
Parent(s):
206f6f9
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ title = '🦒Playground w/ Google PaLM v2'
|
|
11 |
description = """Click below tab and start with your message"""
|
12 |
|
13 |
def generate_text(prompt: str):
|
14 |
-
print("
|
15 |
print(f"User Message:\n{prompt}\n")
|
16 |
try:
|
17 |
response = genai.generate_text(prompt=prompt)
|
@@ -34,7 +34,7 @@ chat_messages = []
|
|
34 |
|
35 |
def generate_chat(prompt: str):
|
36 |
context = "You are an intelligent chatbot powered by biggest technology company."
|
37 |
-
print("
|
38 |
print(f"User Message:\n{prompt}\n")
|
39 |
chat_messages.append(prompt)
|
40 |
|
@@ -54,7 +54,7 @@ def generate_chat(prompt: str):
|
|
54 |
return result
|
55 |
|
56 |
with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
57 |
-
|
58 |
gr.Markdown(
|
59 |
f"""
|
60 |
# {title}
|
|
|
11 |
description = """Click below tab and start with your message"""
|
12 |
|
13 |
def generate_text(prompt: str):
|
14 |
+
print("Generating Text...")
|
15 |
print(f"User Message:\n{prompt}\n")
|
16 |
try:
|
17 |
response = genai.generate_text(prompt=prompt)
|
|
|
34 |
|
35 |
def generate_chat(prompt: str):
|
36 |
context = "You are an intelligent chatbot powered by biggest technology company."
|
37 |
+
print("Generating Chat Message...")
|
38 |
print(f"User Message:\n{prompt}\n")
|
39 |
chat_messages.append(prompt)
|
40 |
|
|
|
54 |
return result
|
55 |
|
56 |
with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
57 |
+
print(chat_messages)
|
58 |
gr.Markdown(
|
59 |
f"""
|
60 |
# {title}
|