Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,14 +7,6 @@ with gr.Blocks(title="PSYCHOHISTORY") as app:
|
|
| 7 |
with gr.Row():
|
| 8 |
txt_search = gr.Textbox(value="Peace in Eurasia in 2027", label="Search Term", scale=5)
|
| 9 |
btn_search = gr.Button("Look", scale=1)
|
| 10 |
-
with gr.Row():
|
| 11 |
-
mem_results = gr.JSON(label="Results")
|
| 12 |
-
btn_search.click(
|
| 13 |
-
gen.generate,
|
| 14 |
-
inputs=[txt_search],
|
| 15 |
-
outputs=mem_results
|
| 16 |
-
)
|
| 17 |
-
|
| 18 |
with gr.Row():
|
| 19 |
img_output = gr.Image(label="Global Graph ", type="filepath") # Add an Image component
|
| 20 |
img_output2 = gr.Image(label="Most likely", type="filepath")
|
|
@@ -25,6 +17,14 @@ with gr.Blocks(title="PSYCHOHISTORY") as app:
|
|
| 25 |
inputs=[mem_results],
|
| 26 |
outputs=[img_output,img_output2,img_output3]
|
| 27 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
if __name__ == "__main__":
|
| 30 |
app.launch()
|
|
|
|
| 7 |
with gr.Row():
|
| 8 |
txt_search = gr.Textbox(value="Peace in Eurasia in 2027", label="Search Term", scale=5)
|
| 9 |
btn_search = gr.Button("Look", scale=1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
with gr.Row():
|
| 11 |
img_output = gr.Image(label="Global Graph ", type="filepath") # Add an Image component
|
| 12 |
img_output2 = gr.Image(label="Most likely", type="filepath")
|
|
|
|
| 17 |
inputs=[mem_results],
|
| 18 |
outputs=[img_output,img_output2,img_output3]
|
| 19 |
)
|
| 20 |
+
with gr.Row():
|
| 21 |
+
mem_results = gr.JSON(label="Results")
|
| 22 |
+
btn_search.click(
|
| 23 |
+
gen.generate,
|
| 24 |
+
inputs=[txt_search],
|
| 25 |
+
outputs=mem_results
|
| 26 |
+
)
|
| 27 |
+
|
| 28 |
|
| 29 |
if __name__ == "__main__":
|
| 30 |
app.launch()
|