Spaces:
Running
on
T4
Running
on
T4
Title and description.
Browse files
app.py
CHANGED
@@ -268,8 +268,9 @@ def chat(
|
|
268 |
# demo.queue(max_size=10)
|
269 |
# demo.launch(share=True)
|
270 |
|
271 |
-
with gr.Blocks() as demo:
|
272 |
with gr.Tab("Generative"):
|
|
|
273 |
with gr.Row():
|
274 |
with gr.Column():
|
275 |
prompt = gr.Textbox(lines=10, label="Prompt", value="Here's a short cyberpunk sci-fi adventure story. The story's main character is an artificial human created by a company called OpenBot.\n\nThe Story:\n")
|
@@ -288,6 +289,7 @@ with gr.Blocks() as demo:
|
|
288 |
clear.click(lambda: None, [], [output])
|
289 |
data.click(lambda x: x, [data], [prompt, token_count, temperature, top_p, presence_penalty, count_penalty])
|
290 |
with gr.Tab("Chat"):
|
|
|
291 |
with gr.Row():
|
292 |
with gr.Column():
|
293 |
chatbot = gr.Chatbot()
|
|
|
268 |
# demo.queue(max_size=10)
|
269 |
# demo.launch(share=True)
|
270 |
|
271 |
+
with gr.Blocks(title=title) as demo:
|
272 |
with gr.Tab("Generative"):
|
273 |
+
gr.Markdown(f'''{desc}<b>Please try examples first (bottom of page)</b> (edit them to use your question). Demo limited to ctxlen {ctx_limit}.''', label="Description")
|
274 |
with gr.Row():
|
275 |
with gr.Column():
|
276 |
prompt = gr.Textbox(lines=10, label="Prompt", value="Here's a short cyberpunk sci-fi adventure story. The story's main character is an artificial human created by a company called OpenBot.\n\nThe Story:\n")
|
|
|
289 |
clear.click(lambda: None, [], [output])
|
290 |
data.click(lambda x: x, [data], [prompt, token_count, temperature, top_p, presence_penalty, count_penalty])
|
291 |
with gr.Tab("Chat"):
|
292 |
+
gr.Markdown(f'''{desc}Scenario: You are Bob, bot is Alice. You meet at a café.''', label="Description")
|
293 |
with gr.Row():
|
294 |
with gr.Column():
|
295 |
chatbot = gr.Chatbot()
|