Spaces:
Sleeping
Sleeping
Added missing iface declaration
Browse files
app.py
CHANGED
|
@@ -11,7 +11,13 @@ def update_values(context):
|
|
| 11 |
state.context = context
|
| 12 |
return state.context
|
| 13 |
|
| 14 |
-
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
project_data = gr.Textbox(label="Project Data", lines=2, value=state.context)
|
| 16 |
output = gr.Textbox(label="Output")
|
| 17 |
|
|
|
|
| 11 |
state.context = context
|
| 12 |
return state.context
|
| 13 |
|
| 14 |
+
with gr.Blocks() as demo:
|
| 15 |
+
iface = gr.Interface(
|
| 16 |
+
fn=answer_question,
|
| 17 |
+
inputs=["text", "text"],
|
| 18 |
+
outputs="text"
|
| 19 |
+
)
|
| 20 |
+
|
| 21 |
project_data = gr.Textbox(label="Project Data", lines=2, value=state.context)
|
| 22 |
output = gr.Textbox(label="Output")
|
| 23 |
|