Spaces:
Sleeping
Sleeping
Try to give input
Browse files
app.py
CHANGED
|
@@ -13,10 +13,10 @@ class State:
|
|
| 13 |
state = State()
|
| 14 |
|
| 15 |
|
| 16 |
-
def update_values(
|
| 17 |
# Access updated values from the Textboxes through `update`
|
| 18 |
-
context =
|
| 19 |
-
question =
|
| 20 |
|
| 21 |
# Update state and return output (optional)
|
| 22 |
state.context = context
|
|
@@ -30,8 +30,8 @@ with gr.Blocks() as iface:
|
|
| 30 |
|
| 31 |
update_btn = gr.Button("Update")
|
| 32 |
update_btn.click(
|
| 33 |
-
fn=update_values,
|
| 34 |
-
|
| 35 |
outputs=output
|
| 36 |
)
|
| 37 |
|
|
|
|
| 13 |
state = State()
|
| 14 |
|
| 15 |
|
| 16 |
+
def update_values(project_data, question):
|
| 17 |
# Access updated values from the Textboxes through `update`
|
| 18 |
+
context = project_data
|
| 19 |
+
question = question
|
| 20 |
|
| 21 |
# Update state and return output (optional)
|
| 22 |
state.context = context
|
|
|
|
| 30 |
|
| 31 |
update_btn = gr.Button("Update")
|
| 32 |
update_btn.click(
|
| 33 |
+
fn=update_values,
|
| 34 |
+
inputs=['test1', 'test2'],
|
| 35 |
outputs=output
|
| 36 |
)
|
| 37 |
|