Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -99,25 +99,20 @@ with gr.Blocks(theme=theme) as demo:
|
|
99 |
with gr.Column():
|
100 |
with gr.Box():
|
101 |
gr.Markdown("**Falcon 7B instruct**")
|
102 |
-
|
103 |
with gr.Column():
|
104 |
with gr.Box():
|
105 |
gr.Markdown("**LLaMA 7B instruct**")
|
106 |
-
|
107 |
-
# with gr.Column():
|
108 |
-
# with gr.Box():
|
109 |
-
# gr.Markdown("**Dolly 12B**")
|
110 |
-
# output_12b = gr.Markdown()
|
111 |
-
|
112 |
with gr.Row():
|
113 |
gr.Examples(
|
114 |
examples=examples,
|
115 |
inputs=[instruction],
|
116 |
cache_examples=False,
|
117 |
fn=process_example,
|
118 |
-
outputs=[
|
119 |
)
|
120 |
-
submit.click(generate, inputs=[instruction, temperature, top_p, top_k, max_new_tokens], outputs=[
|
121 |
-
instruction.submit(generate, inputs=[instruction, temperature, top_p, top_k, max_new_tokens ], outputs=[
|
122 |
|
123 |
demo.queue(concurrency_count=16).launch(debug=True)
|
|
|
99 |
with gr.Column():
|
100 |
with gr.Box():
|
101 |
gr.Markdown("**Falcon 7B instruct**")
|
102 |
+
output_falcon = gr.Markdown()
|
103 |
with gr.Column():
|
104 |
with gr.Box():
|
105 |
gr.Markdown("**LLaMA 7B instruct**")
|
106 |
+
output_llama = gr.Markdown()
|
|
|
|
|
|
|
|
|
|
|
107 |
with gr.Row():
|
108 |
gr.Examples(
|
109 |
examples=examples,
|
110 |
inputs=[instruction],
|
111 |
cache_examples=False,
|
112 |
fn=process_example,
|
113 |
+
outputs=[output_falcon, output_llama],
|
114 |
)
|
115 |
+
submit.click(generate, inputs=[instruction, temperature, top_p, top_k, max_new_tokens], outputs=[output_falcon, output_llama ])
|
116 |
+
instruction.submit(generate, inputs=[instruction, temperature, top_p, top_k, max_new_tokens ], outputs=[output_falcon, output_llama])
|
117 |
|
118 |
demo.queue(concurrency_count=16).launch(debug=True)
|