Nurbot commited on
Commit
3a89669
·
verified ·
1 Parent(s): 8ad50f2

Delete app.py.py

Browse files
Files changed (1) hide show
  1. app.py.py +0 -26
app.py.py DELETED
@@ -1,26 +0,0 @@
1
- import gradio as gr
2
- import cv2
3
- import numpy as np
4
- from datetime import datetime, timedelta
5
- from geometry import extract_candle_data, detect_valid_signal
6
-
7
- def predict_signal(image):
8
- try:
9
- # Resize for consistency
10
- image = cv2.cvtColor(image, cv2.COLOR_RGB2BGR)
11
- candle_data = extract_candle_data(image)
12
- signal = detect_valid_signal(candle_data)
13
- return signal if signal else "No signal (conditions not met)"
14
- except Exception as e:
15
- return f"Error: {str(e)}"
16
-
17
- iface = gr.Interface(
18
- fn=predict_signal,
19
- inputs=gr.Image(type="numpy", label="Upload Chart Screenshot"),
20
- outputs=gr.Textbox(label="Signal Output"),
21
- title="TRANSFINITY FINAL CORE v.ULTIMA",
22
- description="Upload a Quotex OTC chart to get the next 1-minute binary options signal. Timezone: UTC+6"
23
- )
24
-
25
- if __name__ == "__main__":
26
- iface.launch()