Update app.py
Browse files
app.py
CHANGED
@@ -126,7 +126,6 @@ with gr.Blocks() as demo:
|
|
126 |
|
127 |
with gr.Row():
|
128 |
symbol_input = gr.Textbox(label="Stock Symbol", placeholder="Enter a stock symbol (e.g., AAPL)")
|
129 |
-
model_path_input = gr.Textbox(label="Model Path", value="best.pt", placeholder="Path to YOLO model file")
|
130 |
submit_button = gr.Button("Detect Patterns")
|
131 |
|
132 |
with gr.Row():
|
@@ -139,7 +138,7 @@ with gr.Blocks() as demo:
|
|
139 |
# Run detection when the button is clicked
|
140 |
submit_button.click(
|
141 |
fn=detect_gap_patterns,
|
142 |
-
inputs=
|
143 |
outputs=[output_image, gap_up_output, gap_down_output]
|
144 |
)
|
145 |
|
|
|
126 |
|
127 |
with gr.Row():
|
128 |
symbol_input = gr.Textbox(label="Stock Symbol", placeholder="Enter a stock symbol (e.g., AAPL)")
|
|
|
129 |
submit_button = gr.Button("Detect Patterns")
|
130 |
|
131 |
with gr.Row():
|
|
|
138 |
# Run detection when the button is clicked
|
139 |
submit_button.click(
|
140 |
fn=detect_gap_patterns,
|
141 |
+
inputs=symbol_input,
|
142 |
outputs=[output_image, gap_up_output, gap_down_output]
|
143 |
)
|
144 |
|