Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import time
|
|
3 |
import torch
|
4 |
import gradio as gr
|
5 |
|
6 |
-
from strings import TITLE, ABSTRACT
|
7 |
from gen import get_pretrained_models, get_output, setup_model_parallel
|
8 |
|
9 |
os.environ["RANK"] = "0"
|
@@ -70,6 +70,14 @@ with gr.Blocks(css = """#col_container {width: 95%; margin-left: auto; margin-ri
|
|
70 |
|
71 |
with gr.Column(elem_id='col_container'):
|
72 |
gr.Markdown(f"## {TITLE}\n\n\n\n{ABSTRACT}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
chatbot = gr.Chatbot(elem_id='chatbot')
|
74 |
textbox = gr.Textbox(placeholder="Enter a prompt")
|
75 |
|
|
|
3 |
import torch
|
4 |
import gradio as gr
|
5 |
|
6 |
+
from strings import TITLE, ABSTRACT, EXAMPLES
|
7 |
from gen import get_pretrained_models, get_output, setup_model_parallel
|
8 |
|
9 |
os.environ["RANK"] = "0"
|
|
|
70 |
|
71 |
with gr.Column(elem_id='col_container'):
|
72 |
gr.Markdown(f"## {TITLE}\n\n\n\n{ABSTRACT}")
|
73 |
+
|
74 |
+
with gr.Accordion("Example prompts", open=False):
|
75 |
+
example_str = "\n"
|
76 |
+
for example in EXAMPLES:
|
77 |
+
example_str += f"- {example}\n"
|
78 |
+
|
79 |
+
gr.Markdown(example_str)
|
80 |
+
|
81 |
chatbot = gr.Chatbot(elem_id='chatbot')
|
82 |
textbox = gr.Textbox(placeholder="Enter a prompt")
|
83 |
|