pwilczewski commited on
Commit
2870c2d
·
1 Parent(s): 819a20e

short graph, dropdown

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -138,7 +138,7 @@ workflow.add_node("ARIMA", arima_node)
138
 
139
  # conditional_edge to refit and the loop refit with resid?
140
  workflow.add_edge(START, "EDA")
141
- workflow.add_edge("EDA", "PlotAnalysis")
142
  workflow.add_conditional_edges("PlotAnalysis", router)
143
  workflow.add_edge("Difference", "EDA")
144
  workflow.add_edge("ARIMA", END)
@@ -151,5 +151,10 @@ def gradio_interface(input_text):
151
  resp = graph.invoke({"messages": [HumanMessage(content="Run the analysis")]}) # debug=True
152
  return resp
153
 
154
- demo = gr.Interface(fn=gradio_interface, inputs=[], outputs="text")
 
 
 
 
 
155
  demo.launch()
 
138
 
139
  # conditional_edge to refit and the loop refit with resid?
140
  workflow.add_edge(START, "EDA")
141
+ workflow.add_edge("EDA", END)
142
  workflow.add_conditional_edges("PlotAnalysis", router)
143
  workflow.add_edge("Difference", "EDA")
144
  workflow.add_edge("ARIMA", END)
 
151
  resp = graph.invoke({"messages": [HumanMessage(content="Run the analysis")]}) # debug=True
152
  return resp
153
 
154
+ dropdown = gr.Dropdown(
155
+ choices=["Option 1", "Option 2", "Option 3"],
156
+ label="Choose an option"
157
+ )
158
+
159
+ demo = gr.Interface(fn=gradio_interface, inputs=dropdown, outputs="text")
160
  demo.launch()