Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,9 +35,11 @@ def model(input):
|
|
35 |
|
36 |
return response.text
|
37 |
|
38 |
-
|
39 |
-
|
40 |
-
|
|
|
|
|
41 |
|
42 |
if __name__ == "__main__":
|
43 |
demo.launch()
|
|
|
35 |
|
36 |
return response.text
|
37 |
|
38 |
+
with gr.Blocks() as demo:
|
39 |
+
|
40 |
+
inputs = gr.Textbox(placeholder="Let Chat")
|
41 |
+
outputs = gr.Textbox()
|
42 |
+
inputs.change(model, inputs, outputs)
|
43 |
|
44 |
if __name__ == "__main__":
|
45 |
demo.launch()
|