LordXido commited on
Commit
f78a8b1
·
verified ·
1 Parent(s): 7f3126a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -10
app.py CHANGED
@@ -1,21 +1,23 @@
1
  import gradio as gr
2
- from codexbyte_engine import codexbyte_valuator, example_packet
 
3
 
4
- def run_simulation():
5
- adjusted_price = codexbyte_valuator(example_packet)
6
- return f"Adjusted Futures Price (CodexByte ΩΞ): ${adjusted_price:.2f}"
 
7
 
8
  with gr.Blocks() as demo:
9
  gr.Markdown("# CodexByte ΩΞ Runtime")
10
  gr.Markdown(
11
- "Global commodities price harmonizer correcting reporting lag, "
12
- "synthetic distortion, and supply-demand mismatch."
13
  )
14
 
15
- run_btn = gr.Button("Run Price Harmonization")
16
- output = gr.Textbox(label="Result")
17
 
18
- run_btn.click(fn=run_simulation, inputs=[], outputs=output)
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 supplydemand 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)