Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,21 +1,23 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from codexbyte_engine import
|
|
|
|
| 3 |
|
| 4 |
-
def
|
| 5 |
-
|
| 6 |
-
|
|
|
|
| 7 |
|
| 8 |
with gr.Blocks() as demo:
|
| 9 |
gr.Markdown("# CodexByte ΩΞ Runtime")
|
| 10 |
gr.Markdown(
|
| 11 |
-
"
|
| 12 |
-
"synthetic distortion, and supply
|
| 13 |
)
|
| 14 |
|
| 15 |
-
run_btn = gr.Button("Run
|
| 16 |
-
output = gr.
|
| 17 |
|
| 18 |
-
run_btn.click(fn=
|
| 19 |
|
| 20 |
if __name__ == "__main__":
|
| 21 |
-
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from codexbyte_engine import run_codexbyte
|
| 3 |
+
from utils import load_data_sources
|
| 4 |
|
| 5 |
+
def launch():
|
| 6 |
+
data = load_data_sources()
|
| 7 |
+
result = run_codexbyte(data)
|
| 8 |
+
return result
|
| 9 |
|
| 10 |
with gr.Blocks() as demo:
|
| 11 |
gr.Markdown("# CodexByte ΩΞ Runtime")
|
| 12 |
gr.Markdown(
|
| 13 |
+
"Autonomous global commodities and futures harmonization engine.\n\n"
|
| 14 |
+
"Corrects reporting lag, synthetic distortion, and supply–demand mismatch."
|
| 15 |
)
|
| 16 |
|
| 17 |
+
run_btn = gr.Button("Run Autonomous Harmonization")
|
| 18 |
+
output = gr.JSON(label="CodexByte Output")
|
| 19 |
|
| 20 |
+
run_btn.click(fn=launch, inputs=[], outputs=output)
|
| 21 |
|
| 22 |
if __name__ == "__main__":
|
| 23 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|