Spaces:
Sleeping
Sleeping
Commit ·
8d3a5ca
1
Parent(s): 66ba57f
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,7 +83,7 @@ Assistant: <utterance>
|
|
| 83 |
In this app, you can explore the outputs of a gpt-3.5 LLM.
|
| 84 |
"""
|
| 85 |
|
| 86 |
-
def submit(image, agents):
|
| 87 |
global CURRENT_POSITION
|
| 88 |
balloon = Image.open(os.path.join(os.path.dirname(__file__), 'data/balloon.png')).resize((64, 64))
|
| 89 |
new_image = Image.fromarray(image).convert('RGBA')
|
|
@@ -165,7 +165,7 @@ with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
|
|
| 165 |
b0.click(random_sample, inputs = [], outputs = [image])
|
| 166 |
b2.click(reset_sample, inputs = [], outputs = [image])
|
| 167 |
|
| 168 |
-
b1.click(submit, inputs = [image, agents], outputs = [image])
|
| 169 |
|
| 170 |
# inputs.submit(reset_textbox, [], [inputs, b1], queue=False)
|
| 171 |
# inputs.submit(predict, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code, inputs, b1],) #openai_api_key
|
|
|
|
| 83 |
In this app, you can explore the outputs of a gpt-3.5 LLM.
|
| 84 |
"""
|
| 85 |
|
| 86 |
+
def submit(image, *agents):
|
| 87 |
global CURRENT_POSITION
|
| 88 |
balloon = Image.open(os.path.join(os.path.dirname(__file__), 'data/balloon.png')).resize((64, 64))
|
| 89 |
new_image = Image.fromarray(image).convert('RGBA')
|
|
|
|
| 165 |
b0.click(random_sample, inputs = [], outputs = [image])
|
| 166 |
b2.click(reset_sample, inputs = [], outputs = [image])
|
| 167 |
|
| 168 |
+
b1.click(submit, inputs = [image, *agents], outputs = [image])
|
| 169 |
|
| 170 |
# inputs.submit(reset_textbox, [], [inputs, b1], queue=False)
|
| 171 |
# inputs.submit(predict, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter, server_status_code, inputs, b1],) #openai_api_key
|