Spaces:
Sleeping
Sleeping
Staticaliza
commited on
Commit
•
b61755f
1
Parent(s):
c6a6c04
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,6 @@ with gr.Blocks() as demo:
|
|
51 |
with gr.Column():
|
52 |
input = gr.Textbox(label = "Input", value = "", lines = 2)
|
53 |
run = gr.Button("▶")
|
54 |
-
clear = gr.Button("🗑️")
|
55 |
|
56 |
with gr.Column():
|
57 |
model = gr.Dropdown(choices = CHOICES, value = next(iter(API_ENDPOINTS)), interactive = True, label = "Model")
|
@@ -68,6 +67,5 @@ with gr.Blocks() as demo:
|
|
68 |
output = gr.Textbox(label = "Output", value = "", lines = 50)
|
69 |
|
70 |
run.click(predict, inputs = [input, model, temperature, top_p, top_k, rep_p, max_tokens, stop_seqs, seed], outputs = [output], queue = False)
|
71 |
-
clear.click(clear_history, [], history, queue = False)
|
72 |
|
73 |
demo.launch(show_api = True)
|
|
|
51 |
with gr.Column():
|
52 |
input = gr.Textbox(label = "Input", value = "", lines = 2)
|
53 |
run = gr.Button("▶")
|
|
|
54 |
|
55 |
with gr.Column():
|
56 |
model = gr.Dropdown(choices = CHOICES, value = next(iter(API_ENDPOINTS)), interactive = True, label = "Model")
|
|
|
67 |
output = gr.Textbox(label = "Output", value = "", lines = 50)
|
68 |
|
69 |
run.click(predict, inputs = [input, model, temperature, top_p, top_k, rep_p, max_tokens, stop_seqs, seed], outputs = [output], queue = False)
|
|
|
70 |
|
71 |
demo.launch(show_api = True)
|